def add_auth(self, method, data, is_hex=False):
if isinstance(method, int):
def add_auth(self, method, data, is_hex=False):
if isinstance(method, int):
'is_local': False}
def add_local_ts(self, start_addr, end_addr, start_port=0, end_port=0xffff,
'is_local': False}
def add_local_ts(self, start_addr, end_addr, start_port=0, end_port=0xffff,
self.local_ts = {'is_local': True,
'protocol_id': proto,
'start_port': start_port,
self.local_ts = {'is_local': True,
'protocol_id': proto,
'start_port': start_port,
def add_remote_ts(self, start_addr, end_addr, start_port=0,
end_port=0xffff, proto=0):
def add_remote_ts(self, start_addr, end_addr, start_port=0,
end_port=0xffff, proto=0):
self.remote_ts = {'is_local': False,
'protocol_id': proto,
'start_port': start_port,
self.remote_ts = {'is_local': False,
'protocol_id': proto,
'start_port': start_port,
self.vapi.ikev2_set_tunnel_interface(name=self.profile_name,
sw_if_index=self.tun_itf)
self.vapi.ikev2_set_tunnel_interface(name=self.profile_name,
sw_if_index=self.tun_itf)