efa fabric import

An embedded fabric DB file, available on the host where an EFA application is running, can be imported.

Syntax

efa fabric import

Command Default

If efa.db (Embedded fabric DB file) is available on the host where EFA application is run then it can be imported by providing the local file path. In this case server IP and server credentials are not required.

If efa.db is present on the TPVM user has to provide the db file path on TPVM for e.g. /var/efa/efa.db. Also, user needs to enter the TPVM server IP address and server credentials.

If db file path is incorrect or if the application is unable to open the db file then an appropriate error is returned.

If connection to TPVM server fails or unable to locate the DB file using the remote file path then an appropriate error is returned to the user.

Parameters

--db-file
EFA dbfile name including full path
--fabric-name
Name with which the fabric will get imported in the EFA
--server-ip
Remote server IP
--username
Remote server username
--password
Remote server password

Examples

Local DB file import

efa fabric import --db-file /root/efa/efa.db --fabric-name default 

Successfully imported fabric to EFA

Remote DB file import

efa fabric import --db-file /var/efa/efa.db --fabric-name efa_fabric –-server-ip 10.24.85.180 –-username admin–password password

Successfully imported fabric to EFA
efa fabric import --db-file /root/efa/efa.db --fabric-name default

 Leaf Device 10.25.225.172 not connected to Spine Device
        10.24.80.137 [Failed]
 Spine Device 10.24.80.137 not connected to Leaf Device
        10.25.225.172 [Failed]