@@ -363,7 +363,6 @@ def parse_dpg(dpg, hname):
363
363
364
364
vlanintfs = child .find (str (QName (ns , "VlanInterfaces" )))
365
365
dhcp_servers = []
366
- dhcpv6_servers = []
367
366
vlans = {}
368
367
for vintf in vlanintfs .findall (str (QName (ns , "VlanInterface" ))):
369
368
vintfname = vintf .find (str (QName (ns , "Name" ))).text
@@ -376,12 +375,6 @@ def parse_dpg(dpg, hname):
376
375
else :
377
376
vlandhcpservers = ""
378
377
dhcp_servers = vlandhcpservers .split (";" )
379
- vintf_node = vintf .find (str (QName (ns , "Dhcpv6Relays" )))
380
- if vintf_node is not None and vintf_node .text is not None :
381
- vlandhcpservers = vintf_node .text
382
- else :
383
- vlandhcpservers = ""
384
- dhcpv6_servers = vlandhcpservers .split (";" )
385
378
for i , member in enumerate (vmbr_list ):
386
379
# Skip PortChannel inside Vlan
387
380
if member in pcs :
@@ -409,7 +402,7 @@ def parse_dpg(dpg, hname):
409
402
if acl_intfs :
410
403
acls [aclname ] = acl_intfs
411
404
412
- return intfs , lo_intfs , mgmt_intf , vlans , pcs , acls , dhcp_servers , dhcpv6_servers
405
+ return intfs , lo_intfs , mgmt_intf , vlans , pcs , acls , dhcp_servers
413
406
return None , None , None , None , None , None , None
414
407
415
408
def parse_cpg (cpg , hname ):
@@ -585,7 +578,6 @@ def parse_xml(filename, hostname, asic_name=None):
585
578
hostname = None
586
579
syslog_servers = []
587
580
dhcp_servers = []
588
- dhcpv6_servers = []
589
581
ntp_servers = []
590
582
mgmt_routes = []
591
583
bgp_peers_with_range = []
@@ -616,7 +608,7 @@ def parse_xml(filename, hostname, asic_name=None):
616
608
for child in root :
617
609
if asic_name is None :
618
610
if child .tag == str (QName (ns , "DpgDec" )):
619
- (intfs , lo_intfs , mgmt_intf , vlans , pcs , acls , dhcp_servers , dhcpv6_servers ) = parse_dpg (child , hostname )
611
+ (intfs , lo_intfs , mgmt_intf , vlans , pcs , acls , dhcp_servers ) = parse_dpg (child , hostname )
620
612
elif child .tag == str (QName (ns , "CpgDec" )):
621
613
(bgp_sessions , bgp_asn , bgp_peers_with_range ) = parse_cpg (child , hostname )
622
614
elif child .tag == str (QName (ns , "PngDec" )):
@@ -627,7 +619,7 @@ def parse_xml(filename, hostname, asic_name=None):
627
619
(syslog_servers , ntp_servers , mgmt_routes , deployment_id ) = parse_meta (child , hostname )
628
620
else :
629
621
if child .tag == str (QName (ns , "DpgDec" )):
630
- (intfs , lo_intfs , mgmt_intf , vlans , pcs , acls , dhcp_servers , dhcpv6_servers ) = parse_dpg (child , asic_name )
622
+ (intfs , lo_intfs , mgmt_intf , vlans , pcs , acls , dhcp_servers ) = parse_dpg (child , asic_name )
631
623
host_lo_intfs = parse_host_loopback (child , hostname )
632
624
elif child .tag == str (QName (ns , "CpgDec" )):
633
625
(bgp_sessions , bgp_asn , bgp_peers_with_range ) = parse_cpg (child , asic_name )
@@ -708,7 +700,6 @@ def parse_xml(filename, hostname, asic_name=None):
708
700
results ['minigraph_mgmt' ] = get_mgmt_info (devices , mgmt_dev , mgmt_port )
709
701
results ['syslog_servers' ] = syslog_servers
710
702
results ['dhcp_servers' ] = dhcp_servers
711
- results ['dhcpv6_servers' ] = dhcpv6_servers
712
703
results ['ntp_servers' ] = ntp_servers
713
704
results ['forced_mgmt_routes' ] = mgmt_routes
714
705
results ['deployment_id' ] = deployment_id
0 commit comments