Ejemplo n.º 1
0
 def _nexthop_actions(self, eth_dst, vlan):
     ofmsgs = []
     if self.routers:
         ofmsgs.append(valve_of.set_vlan_vid(vlan.vid))
     ofmsgs.extend([
         valve_of.set_eth_src(self.faucet_mac),
         valve_of.set_eth_dst(eth_dst),
         valve_of.dec_ip_ttl()])
     return ofmsgs
Ejemplo n.º 2
0
 def _nexthop_actions(self, eth_dst, vlan):
     ofmsgs = []
     if self.routers:
         ofmsgs.append(self.fib_table.set_vlan_vid(vlan.vid))
     ofmsgs.extend([
         self.fib_table.set_field(eth_src=vlan.faucet_mac),
         self.fib_table.set_field(eth_dst=eth_dst)])
     if self.dec_ttl:
         ofmsgs.append(valve_of.dec_ip_ttl())
     return ofmsgs
Ejemplo n.º 3
0
 def _nexthop_actions(self, eth_dst, vlan):
     actions = []
     if self.routers:
         actions.append(self.fib_table.set_vlan_vid(vlan.vid))
     actions.extend([
         self.fib_table.set_field(eth_src=vlan.faucet_mac),
         self.fib_table.set_field(eth_dst=eth_dst)])
     if self.dec_ttl:
         actions.append(valve_of.dec_ip_ttl())
     return actions
Ejemplo n.º 4
0
 def _nexthop_actions(self, eth_dst, vlan):
     """Return flowrule actions for fib entry"""
     actions = []
     if self.routers:
         actions.append(self.fib_table.set_vlan_vid(vlan.vid))
     actions.extend([
         self.fib_table.set_field(eth_src=vlan.faucet_mac),
         self.fib_table.set_field(eth_dst=eth_dst)])
     if self.dec_ttl:
         actions.append(valve_of.dec_ip_ttl())
     return tuple(actions)