I have set up a two nodes openstack.
I have three vms test1 , vnf , test2. test1 and vnf are on node1, test2 is on node2.
after command:
neutron port-chain-create --port-pair-group ppg1 --flow-classifier fc1 --chain-parameters symmetric=true pc
I can see only group is set on node1, cannot see group on node2:
node1:
cookie=0xacfe256f06fc6003, duration=2612.911s, table=0, n_packets=0, n_bytes=0, priority=30,tcp,in_port=3,nw_src=10.0.10.8,nw_dst=10.0.10.9,tp_dst=80 actions=group:1
cookie=0xacfe256f06fc6003, duration=2612.805s, table=0, n_packets=0, n_bytes=0, priority=30,tcp,in_port=4,nw_src=10.0.10.8,nw_dst=10.0.10.9,tp_dst=80 actions=NORMAL
cookie=0xacfe256f06fc6003, duration=2612.495s, table=0, n_packets=0, n_bytes=0, priority=30,tcp,in_port=4,nw_src=10.0.10.9,nw_dst=10.0.10.8,tp_src=80 actions=NORMAL
ubuntu@compute:~$ ovsofctl dump-groups br-int
OFPST_GROUP_DESC reply (OF1.3) (xid=0x2):
group_id=1,type=select,bucket=actions=set_field:fa:16:3e:25:fd:5b->eth_dst,resubmit(,5)
node2:
cookie=0xa576251aec953a60, duration=876.943s, table=0, n_packets=0, n_bytes=0, priority=20,mpls actions=goto_table:10
cookie=0xa576251aec953a60, duration=875.155s, table=0, n_packets=0, n_bytes=0, priority=10,icmp6,in_port=5,icmp_type=136 actions=goto_table:24
cookie=0xa576251aec953a60, duration=875.135s, table=0, n_packets=0, n_bytes=0, priority=10,icmp6,in_port=4,icmp_type=136 actions=goto_table:24
cookie=0xa576251aec953a60, duration=875.150s, table=0, n_packets=71, n_bytes=2982, priority=10,arp,in_port=5 actions=goto_table:24
cookie=0xa576251aec953a60, duration=875.131s, table=0, n_packets=23, n_bytes=966, priority=10,arp,in_port=4 actions=goto_table:24
cookie=0xa576251aec953a60, duration=876.806s, table=0, n_packets=0, n_bytes=0, priority=2,in_port=1 actions=drop
cookie=0xa576251aec953a60, duration=875.160s, table=0, n_packets=21, n_bytes=2310, priority=9,in_port=5 actions=goto_table:25
cookie=0xa576251aec953a60, duration=875.141s, table=0, n_packets=100, n_bytes=11384, priority=9,in_port=4 actions=goto_table:25
cookie=0xa576251aec953a60, duration=876.775s, table=0, n_packets=0, n_bytes=0, priority=4,in_port=1,dl_src=fa:16:3f:b2:db:ac actions=goto_table:2
cookie=0xa576251aec953a60, duration=876.770s, table=0, n_packets=0, n_bytes=0, priority=2,in_port=2,dl_src=fa:16:3f:b2:db:ac actions=goto_table:1
cookie=0xa576251aec953a60, duration=878.432s, table=0, n_packets=0, n_bytes=0, priority=0 actions=NORMAL
cookie=0xa576251aec953a60, duration=876.808s, table=0, n_packets=978, n_bytes=87596, priority=1 actions=NORMAL
cookie=0xa576251aec953a60, duration=876.812s, table=1, n_packets=0, n_bytes=0, priority=1 actions=drop
cookie=0xa576251aec953a60, duration=876.810s, table=2, n_packets=0, n_bytes=0, priority=1 actions=drop
cookie=0xab54dc21ad1773a2, duration=875.586s, table=5, n_packets=0, n_bytes=0, priority=0,ip,dl_dst=fa:16:3e:25:fd:5b actions=push_mpls:0x8847,set_field:511->mpls_label,set_mpls_ttl(255),push_vlan:0x8100,set_field:4097->vlan_vid,output:2
ubuntu@openstack1:~$ ovsofctl dump-groups br-int
OFPST_GROUP_DESC reply (OF1.3) (xid=0x2):
group_id=7001,type=select,bucket=actions=set_field:fa:16:3e:25:fd:5b->eth_dst,resubmit(,5)
--- a/networking_ sfc/services/ sfc/agent/ extensions/ openvswitch/ sfc_driver. py sfc/services/ sfc/agent/ extensions/ openvswitch/ sfc_driver. py er(sfc. SfcAgentDriver) :
enc_actions = self._build_ push_mpls( flowrule[ 'nsp'],
flowrule[ 'nsi']) 'fwd_path' ]:
+++ b/networking_
@@ -447,7 +447,10 @@ class SfcOVSAgentDriv
if pc_corr == 'mpls':
- enc_actions = enc_actions + ("group:%d" % group_id)
+ if flowrule[
+ enc_actions = enc_actions + ("group:%d" % group_id)
+ else:
+ enc_actions = enc_actions + ("group:%d" % rev_group_id)
# to uninstall the removed flow classifiers
self. _setup_ local_switch_ flows_on_ int_br(