Skip to content
Snippets Groups Projects
Commit 34cb1800 authored by Malte Bauch's avatar Malte Bauch
Browse files

Update NextHop to use UnionString

parent cfcabedf
No related branches found
No related tags found
1 merge request!475Add lldp yang model to arista generate config
Pipeline #151328 passed
......@@ -140,10 +140,8 @@ func setRoutingTable(model *arista.Device, routePrefix string, nextHopIP string)
}
protocolStatic.StaticRoutes.Static[routePrefix].NextHops.NextHop[nextHopIPIndex].Config = &arista.OpenconfigNetworkInstance_NetworkInstances_NetworkInstance_Protocols_Protocol_StaticRoutes_Static_NextHops_NextHop_Config{
Index: ygot.String(nextHopIPIndex),
Metric: ygot.Uint32(1),
NextHop: &arista.OpenconfigNetworkInstance_NetworkInstances_NetworkInstance_Protocols_Protocol_StaticRoutes_Static_NextHops_NextHop_Config_NextHop_Union_String{
String: nextHopIP,
},
Index: ygot.String(nextHopIPIndex),
Metric: ygot.Uint32(1),
NextHop: arista.UnionString(nextHopIP),
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment