Skip to content
Snippets Groups Projects
Commit 8c0ed513 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Device - gNMI OpenConfig Driver:

- Corrected MTU logic
parent 664432b7
No related branches found
No related tags found
1 merge request!298Resolve "Merge Hackfest 5 in `develop` and related code fixes"
......@@ -41,7 +41,7 @@ class InterfaceHandler(_Handler):
vlan_id = get_int (resource_value, 'vlan_id', ) # 127
address_ip = get_str (resource_value, 'address_ip' ) # 172.16.0.1
address_prefix = get_int (resource_value, 'address_prefix') # 24
mtu = get_int (resource_value, 'mtu', ) # 1500
mtu = get_int (resource_value, 'mtu' ) # 1500
yang_ifs : libyang.DContainer = yang_handler.get_data_path('/openconfig-interfaces:interfaces')
yang_if_path = 'interface[name="{:s}"]'.format(if_name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment