We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9d938a commit c6658d3Copy full SHA for c6658d3
examples/route_policy.py
@@ -34,7 +34,9 @@ def get_policies(self):
34
:rtype: json object
35
"""
36
path = '{"openconfig-routing-policy:routing-policy": [null]}'
37
- result = self.client.getconfig(path)
+ err, result = self.client.getconfig(path)
38
+ if err:
39
+ print err
40
policies = json.loads(result, object_pairs_hook=OrderedDict)
41
return policies
42
@@ -69,7 +71,9 @@ def get_neighbors(self):
69
71
70
72
73
path = '{"openconfig-bgp:bgp": [null]}'
74
75
76
77
bgp = json.loads(result, object_pairs_hook=OrderedDict)
78
return bgp
79
0 commit comments