| Conditions | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | """Testing PhyPort structure.""" |
||
| 12 | dump += b'\x00\x00\x00\x00@\x00\x00\x04\x00\x00\x00\x02\x00\x00\x00\x02' |
||
| 13 | dump += b'\x00' |
||
| 14 | |||
| 15 | obj = PhyPort(port_no=2, |
||
| 16 | hw_addr='1a:2b:3c:4d:5e:6f', |
||
| 17 | name='X' * OFP_MAX_PORT_NAME_LEN, |
||
| 18 | config=PortConfig.OFPPC_NO_STP, |
||
| 19 | state=PortState.OFPPS_STP_FORWARD, |
||
| 20 | curr=PortFeatures.OFPPF_10GB_FD, |
||
| 21 | advertised=PortFeatures.OFPPF_PAUSE, |
||
| 22 | supported=PortFeatures.OFPPF_AUTONEG, |
||
| 23 | peer=PortFeatures.OFPPF_AUTONEG) |
||
| 24 |