SI v2: attaching a static route to SI interface doesnt advertise the same

Bug #1548007 reported by Senthilnathan Murugappan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.0
Invalid
High
Rudra Rugge
Trunk
Invalid
High
Rudra Rugge

Bug Description

static route added to service instance interface type doesnt get advertised via service chain.
I have v2 service instance in-network service instance and i have added static route to left interface of the SI like we do for V1 service instance.

code snippet is as below
                static_rt = RouteTableType([RouteType(prefix=static_route,
                                          )]) if static_route else None
                left_itf = ServiceInstanceInterfaceType(virtual_network=vn_fqname,
                                                    static_routes=static_rt)
               si_prop = ServiceInstanceType(left_virtual_network=left_vn_fqname,
                                          right_virtual_network=right_vn_fqname,
                                          interface_list=[left_itf, right_itf],
                                          ha_mode='active-active')
             self.obj = ServiceInstance(name=name, parent_type='project',
                                       fq_name=fq_name,
                                       service_instance_properties=si_prop)
             self.obj.set_service_template(self.vnc.service_template_read(id=st_uuid))
             self.uuid = self.vnc.service_instance_create(self.obj)

and observed that the static route was never published in the left vrf. However if i had a NetworkRouteTable and attach it to VN it works. Unable the test the same using InterfaceRouteTable due to #1544472

Revision history for this message
Senthilnathan Murugappan (msenthil) wrote :

Checked with Rudra, this isnt supported with V2. One has to use InterfaceRouteTable in case of V2 service chain.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.