def handle_st_object_req(self): resp = super(SecurityLoggingObjectST, self).handle_st_object_req() resp.properties = [ _create_pprinted_prop_list('rule', rule) for rule in self.security_logging_object_rules ] return resp
def handle_st_object_req(self): resp = super(SecurityGroupST, self).handle_st_object_req() resp.obj_refs = [ self._get_sandesh_ref_list('security_group'), sandesh.RefList('referred_security_group', self.referred_sgs) ] resp.properties.extend([ sandesh.PropList('sg_id', str(self.sg_id)), ] + [_create_pprinted_prop_list('rule', rule) for rule in self.security_group_entries.get_policy_rule() or []]) return resp
def handle_st_object_req(self): resp = super(RouteTableST, self).handle_st_object_req() resp.obj_refs = [ self._get_sandesh_ref_list('virtual_network'), self._get_sandesh_ref_list('service_instance'), self._get_sandesh_ref_list('logical_router'), ] resp.properties = [ _create_pprinted_prop_list('route', route) for route in self.routes ] return resp
def handle_st_object_req(self): resp = super(NetworkPolicyST, self).handle_st_object_req() resp.obj_refs = [ self._get_sandesh_ref_list('virtual_network'), self._get_sandesh_ref_list('service_instance'), self._get_sandesh_ref_list('network_policy'), sandesh.RefList('referred_policy', self.referred_policies) ] resp.properties = [ _create_pprinted_prop_list('rule', rule) for rule in self.rules ] return resp
def handle_st_object_req(self): resp = super(ServiceInstanceST, self).handle_st_object_req() resp.obj_refs.extend([ self._get_sandesh_ref_list('port_tuple'), self._get_sandesh_ref_list('network_policy'), self._get_sandesh_ref_list('route_table'), ]) resp.properties.extend([ sandesh.PropList('left_network', self.left_vn_str), sandesh.PropList('right_network', self.right_vn_str), _create_pprinted_prop_list('auto_policy', self.auto_policy), sandesh.PropList('service_mode', self.get_service_mode()), sandesh.PropList('virtualization_type', self.get_virtualization_type()), ]) return resp