Supported by the GlobalNOC at Indiana University

Most PopularMost popular assets for this branch of the site.
  1. Known Issues
  2. Hybrid mode configuration
  3. Viewing Flows
  4. Connection to Controller
  5. Upgrading Code
Recent ChangesRecently edited assets for this branch of the site.
  1. Upgrading Code
  2. Connection to Controller
  3. Logging In
  4. Known Issues
  5. Hybrid mode configuration

Brocades



Logging In


Viewing Flows

To view flows run the show openflow flows command on device.

SSH@brocade1.sdn-test#show openflow flows
Total Number of data packets sent to controller:               182304
Total Number of data bytes sent to controller  :             11667456

Total Number of Flows: 5
Total Number of Port based Flows: 4
Total Number of L2 Generic Flows: 0
Total Number of L3 Generic Flows: 0
Total Number of L2+L3 Generic Flows: 1
Total Number of Hardware entries for Generic flow: 5

Flow ID: 1 Priority: 32768 Status: Active
	Rule:
	   In Vlan:	 Untagged
	   Ether type:	 0x000088cc
	Action: FORWARD
	   Out Port: send to controller

Flow ID: 2 Priority: 32768 Status: Active
	Rule:
	   In Port:	 e15/6
	   In Vlan:	 Tagged[103]
	Action: FORWARD
	   Out Port:  e15/2, Tagged, Vlan: 2
        Statistics:
	   Total Pkts: 14732514715
	   Total Bytes: 125226375048431

It is also possible to filter the results to specific interfaces (sorry can't do specific vlans) by appending the interface name to the end of that command like:

SSH@brocade1.sdn-test#show openflow flows ethernet 15/2

Total Number of Flows associated with the port: 3

Flow ID: 1 Priority: 32768 Status: Active
	Rule:
	   In Port:	generic
	   In Vlan:	 Untagged
	   Ether type:	 0x000088cc
	Action: FORWARD
	   Out Port: send to controller

Flow ID: 3 Priority: 32768 Status: Active
	Rule:
	   In Port:	 e15/2
	   In Vlan:	 Tagged[2]
	Action: FORWARD
	   Out Port:  e15/6, Tagged, Vlan: 103
	Statistics:
	   Total Pkts: 14732515545
	   Total Bytes: 125226382150969

Flow ID: 5 Priority: 32768 Status: Active
	Rule:
           In Port:      e15/2
	   In Vlan:	 Tagged[1]
	Action: FORWARD
	   Out Port:  e15/4, Vlan: STRIPPED
	Statistics:
	   Total Pkts: 182367
	   Total Bytes: 12400956

Another thing to note is that the flow stats are included in the show openflow flows.

If you have only 1 specific rule that you are interested in seeing you can also specify the flow id in the command:

SSH@brocade1.sdn-test#show openflow flows flowid 5
Flow ID: 5 Priority: 32768 Status: Active
	Rule:
	   In Port:	 e15/2
	   In Vlan:	 Tagged[1]
	Action: FORWARD
	   Out Port:  e15/4, Vlan: STRIPPED
	Statistics:
	   Total Pkts: 182411
	   Total Bytes: 12403948

Connection to Controller

To view the currently configured controllers users can enter show openflow controller command.  This will only list the configured controllers and not their status.

SSH@brocade1.sdn-test#show openflow controller
tcp:140.182.45.44:6633

To see the status of each controller the show openflow command lists the currently configured controllers and a list of hybrid and non-hybrid openflow interfaces and the matches supported.

SSH@brocade1.sdn-test#show openflow
Administrative Status:       Enabled
SSL Status:                  Enabled

Controller Type:             OFV 100
Number of Controllers:       1

Controller 1:
Connection Mode:       active, TCP,
Controller Address:     140.182.45.44
Connection Port:       6633
Connection Status:
Local IP address:port <-> Remote IP address:port TCP state    RcvQue  RxBuffe SendQue TxBuffe
156.56.6.221    8804      140.182.45.44   6633   ESTABLISHED  0       0       0       0

SSL Connection       :False


Match Capabilty:
L2: Port, Source MAC, Destination MAC, Ether type, Vlan, Vlan PCP
L3: Port, Vlan, Vlan PCP, Source IP, Destination IP, IP Protocol, IP TOS, IP Src Port, IP Dst Port

Normal Openflow Enabled Ports:      e1/1
Openflow Hybrid Interfaces:
e1/2  Protected VLANs  : None
e15/2  Protected VLANs  : None
e15/4  Protected VLANs  : None
e15/6  Protected VLANs  : None
Default action: drop
Maximum number of flows allowed: 4000

Maximum number of Protected Vlans allowed: 2048


To change the controller do the following steps

1.) run the configure terminal command

"SSH@brocade2.sdn-test#conf t"

2.) remove the old controller

"no openflow controller ip-address <CURRENT_IP_ADDRESS> no-ssl port <PORT>"

3.) add new controller

"openflow controller ip-address <NEW_IP_ADDRESS> no-ssl port <PORT>"

4.) run "write mem" if you want to save the changes on reboot


Known Issues

FlowStats have stopped updating (really the graphs have stopped updating).  Unfortunately the only fix I know is to reboot the switch.  You'll know if this is the issue, because everytime you run show openflow flows you'll see data show up in the graphs.


Hybrid mode configuration

To put an interface into hybrid mode

interface ethernet 1/2
 openflow enable layer2 hybrid-mode
 openflow protected-vlans 3
 enable
 load-interval 30
 link-fault-signaling
!

Please note that flows can still be placed on this interface for the protected vlans, however those rules will never match.  This is expected behavior and we have requested this to be changed.


Upgrading Code

Manually upgrading code:

Note: this example is for brocade 5.4.0d, the 05400d filename suffix changes with each version of code, dependent on whether or not Brocade updated that portion of code in that most recent revision.

Step 1) scp Monitor/ManagementModule/xmb05400d.bin brocade@149.165.130.56:flash:monitor

Step 2) scp Boot/ManagementModule/xmprm05400d.bin brocade@149.165.130.56:flash:boot

Step 3) scp Combined/Application/xm05400d.bin brocade@149.165.130.56:image:primary

Step 4) scp Monitor/InterfaceModule/xmlb05400d.bin brocade@149.165.130.56:lp:monitor:all

Step 5) scp Boot/InterfaceModule/xmlprm05400d.bin brocade@149.165.130.56:lp:boot:all

--Note: These can take quite a long time.

Step 6) scp Combined/FPGA/lpfpga05400d.bin brocade@149.165.130.56:lp:fpga-all:all:force-overwrite

Step 7) scp FPGA/ManagementModule/mbridge_05400d.xsvf brocade@149.165.130.56:mbridge

Semi-Automated Upgrade of Code:

If you've done the manual process above, you may realize it requires constant-ish attention and is pretty error prone if you're trying to do more than one at a time, to help alleviate that, we've built a simple script that wraps  scp with Expect, and can upgrade multiple brocades in parallel available below:

https://svn.grnoc.iu.edu/viewvc/viewvc.cgi/grnoc/random_scripts/GRNOC-SCP/trunk/

upgrade_brocades.pl is an incredibly simple, one-off script which contains an array of scp commands to run against each switch, uses GRNOC-CLI to get username and password, and this very simple scp wrapper to enable password reuse.

To use it currently requires editing of the upgrade_brocades.pl code to change the source file of each scp command:

This is the same list as above in the manual process, but you will want to use absolute directories

an example of the edits required for brocade 5.6.0fb:

This is obviously a work in progress and such optimizations as moving the command list to an external source are possible, but not yet implemented.

my @commands = ('/home/gmcnaugh/tftpboot/5.6.0/XMR-MLX/Monitor/ManagementModule/xmb05600.bin [%hostname%]:flash:monitor',

'/home/gmcnaugh/tftpboot/5.6.0/XMR-MLX/Boot/ManagementModule/xmprm05600.bin [%hostname%]:flash:boot',

'/home/gmcnaugh/tftpboot/5.6.0/XMR-MLX/Combined/Application/xm05600fb.bin [%hostname%]:image:primary',

'/home/gmcnaugh/tftpboot/5.6.0/XMR-MLX/Monitor/InterfaceModule/xmlb05600.bin [%hostname%]:lp:monitor:all',

'/home/gmcnaugh/tftpboot/5.6.0/XMR-MLX/Boot/InterfaceModule/xmlprm05600.bin [%hostname%]:lp:boot:all',

#--Note: These can take quite a long time.

'/home/gmcnaugh/tftpboot/5.6.0/XMR-MLX/Combined/FPGA/lpfpga05600fb.bin [%hostname%]:lp:fpga-all:all:force-overwrite',

'/home/gmcnaugh/tftpboot/5.6.0/XMR-MLX/FPGA/ManagementModule/mbridge_05600fb.xsvf [%hostname%]:mbridge',

);


Your request has been completed.