示例#1
0
 def bgp_send_open(self):
     open=Open(version=4, asn=1,bgp_id=None)
     open.construct()
示例#2
0
 def bgp_send_open(self):
     open = Open(version=4, asn=1, bgp_id=None)
     open.construct()
示例#3
0
 def send_open(self,my_capability):
     open=Open(version=4, asn=1,hold_time=180,bgp_id='172.16.2.1')
     open_msg= open.construct(my_capability)
     return open_msg
示例#4
0
 def open_parse(self,message):
     open = Open(version=4, asn=1,bgp_id=None)
     parsed_open_message = open.parse(message)
     return (parsed_open_message)
示例#5
0
 def send_open(self, my_capability):
     open = Open(version=4, asn=1, hold_time=180, bgp_id='172.16.2.1')
     open_msg = open.construct(my_capability)
     return open_msg
示例#6
0
 def open_parse(self, message):
     open = Open(version=4, asn=1, bgp_id=None)
     parsed_open_message = open.parse(message)
     return (parsed_open_message)