Implementing Unidirectional and Bidirectional Virtual Wire Links

In this section you configure a single bidirectional Virtual Wire link using the port-association-create command with the option virtual-wire to create a single bidirectional Virtual Wire link. This can be implemented in two ways that are functionally equivalent:

1. To configure a unidirectional Virtual Wire link from device A to device B, enter the following command:

CLI network-admin@Leaf1 > port-association-create name A-to-B virtual-wire master-ports 10 slave-ports 20

/port-associations

{

“name”: “A-to-B”,

“virtual-wire”:”true”,

“master-ports”: “10”,

“slave-ports”: “20”

}


 

Informational Note:  Please note that the parameter “mode(?) must be set to “true”. This is the case when the switch is running in Virtual Wire mode and you are configuring Virtual Wire features.

1. To configure a unidirectional Virtual Wire link from device B to device A, enter the following command:

/port-associations

{

“name”: “B-to-A”,

“virtual-wire”:”true”,

“master-ports”: “20”,

“slave-ports”: “10”

}

1. To configure a bidirectional Virtual Wire link from device A to device B, enter the following command:

CLI network-admin@Leaf1 > port-association-create name A-to-B bidir virtual-wire master-ports 10 slave-ports 20

/port-associations

{

“name”: “A-to-B”,

“bidir”,

“virtual-wire”:”true”,

“master-ports”: “20”,

“slave-ports”: “10”

}

To display existing Virtual Wire links, use the port-association-show command:

CLI network-admin@Leaf1 > port-association-show

switch          name        master-ports  slave-ports  policy       virtual-wire bidir

---------       ------      -----------   -----------  -----------  ------------ -----

vw-switch       A-to-B      10            20           all-masters  true         true

 

/port-associations

To delete an existing Virtual Wire link, use the port-association-delete command with the name string parameter:

CLI network-admin@Leaf1 > port-association-delete name A-to-B

/port-associations/A-to-B