-
Notifications
You must be signed in to change notification settings - Fork 181
Transitioning to 7.0.0
bharnden edited this page Jul 14, 2020
·
2 revisions
In CORE 7.0.0 a lot of refactoring was done within the code base to try and get to consistent and more concise names being used. Most changes are in relation to names relation to nodes and interfaces.
Changes that will likely impact someone writing python code to control CORE.
- all usages of node_one/node_two are now node1/node2
- all usages related to interfaces previously using (interface, netif, ifc, if, i) will now use iface
- all usages of interface_one/interface_two are now iface1/iface2
- all usages of hwaddr/mac are now mac
- mac is now a netaddr.EUI object, providing potential for more functionality than simple strings
- all usages of per/loss are now loss
- session add_link/update_link/delete_link now has a link_type parameter that defaults to WIRED
- LinkData objects will now leverage InterfaceData and LinkOptions objects, instead of repeating fields
- core.emudata and core.data have been merged into core.data
- all usages of addr/address are now ip/ips
- CoreInterface changed singular addrlist variable to ip4s and ip6s variable to maintain respective address types
- ip4s and ip6s will be netaddr.IPNetwork objects, providing potential for more functionality than simple strings
Changes that will likely impact someone writing python code interface with gRPC messages.
- all usages of node_one/node_two are now node1/node2
- all usages of interface_one/interface_two are now iface1/iface2
- all usages of per/loss are now loss
- Interface objects renamed ip4mask/ip6mask/netid/flowid to ip4_mask/ip6_mask/net_id/flow_id
Changes likely to impact existing custom service code, interacting with nodes.
- Node.netifs() is Node.get_ifaces()
- all usages of hwaddr/mac are now mac
- mac is now a netaddr.EUI object, providing potential for more functionality than simple strings
- all usages of addr/address are now ip/ips
- CoreInterface changed singular addrlist variable to ip4s and ip6s variable to maintain respective address types
- ip4s and ip6s will be netaddr.IPNetwork objects, providing potential for more functionality than simple strings