File tree 2 files changed +7
-5
lines changed
tests/libyang-python-tests
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -526,7 +526,7 @@ def find_data_dependencies(self, data_xpath):
526
526
527
527
schema_node = ly .Schema_Node_Leaf (data_node .schema ())
528
528
backlinks = schema_node .backlinks ()
529
- if backlinks .number () > 0 :
529
+ if backlinks is not None and backlinks .number () > 0 :
530
530
for link in backlinks .schema ():
531
531
node_set = node .find_path (link .path ())
532
532
for data_set in node_set .data ():
Original file line number Diff line number Diff line change 59
59
60
60
"dependencies" :[
61
61
{"xpath" :" /test-port:port/PORT/PORT_LIST[port_name='Ethernet8']/port_name" ,
62
- "dependencies" :
63
- [" /test-acl:acl/ACL_TABLE/ACL_TABLE_LIST[ACL_TABLE_NAME='PACL-V6']/ports[.='Ethernet8']" ,
64
- " /test-interface:interface/INTERFACE/INTERFACE_LIST[interface='Ethernet8'][ip-prefix='10.1.1.64/26']/interface" ,
65
- " /test-interface:interface/INTERFACE/INTERFACE_LIST[interface='Ethernet8'][ip-prefix='2000:f500:40:a749::/126']/interface" ]}
62
+ "dependencies" :
63
+ [" /test-acl:acl/ACL_TABLE/ACL_TABLE_LIST[ACL_TABLE_NAME='PACL-V6']/ports[.='Ethernet8']" ,
64
+ " /test-interface:interface/INTERFACE/INTERFACE_LIST[interface='Ethernet8'][ip-prefix='10.1.1.64/26']/interface" ,
65
+ " /test-interface:interface/INTERFACE/INTERFACE_LIST[interface='Ethernet8'][ip-prefix='2000:f500:40:a749::/126']/interface" ]},
66
+ {"xpath" :" /test-port:port/PORT/PORT_LIST[port_name='Ethernet8']/alias" ,
67
+ "dependencies" :[]}
66
68
],
67
69
"schema_dependencies" :[
68
70
{"xpath" :" /test-port:port/test-port:PORT/test-port:PORT_LIST/test-port:port_name" ,
You can’t perform that action at this time.
0 commit comments