updated and fixed formatting with proper version of python black
This commit is contained in:
parent
a80796ac72
commit
db89fbf066
9 changed files with 49 additions and 41 deletions
|
@ -4,8 +4,9 @@ from core.api.grpc.wrappers import NodeType, Position
|
|||
|
||||
def main():
|
||||
# interface helper
|
||||
iface_helper = client.InterfaceHelper(ip4_prefix="10.0.0.0/24",
|
||||
ip6_prefix="2001::/64")
|
||||
iface_helper = client.InterfaceHelper(
|
||||
ip4_prefix="10.0.0.0/24", ip6_prefix="2001::/64"
|
||||
)
|
||||
|
||||
# create grpc client and connect
|
||||
core = client.CoreGrpcClient()
|
||||
|
@ -16,8 +17,9 @@ def main():
|
|||
|
||||
# create nodes
|
||||
position = Position(x=200, y=200)
|
||||
wlan = session.add_node(1, name="wlan1", _type=NodeType.WIRELESS_LAN,
|
||||
position=position)
|
||||
wlan = session.add_node(
|
||||
1, name="wlan1", _type=NodeType.WIRELESS_LAN, position=position
|
||||
)
|
||||
position = Position(x=100, y=100)
|
||||
node1 = session.add_node(2, name="n2", model="mdr", position=position)
|
||||
position = Position(x=300, y=100)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue