grpc: removed old client, refactored wrapped client to be the new standard client, removed old client tests, updated documentation

This commit is contained in:
Blake Harnden 2021-05-04 13:29:22 -07:00
parent 924e86da2b
commit 15acdaa40f
14 changed files with 698 additions and 3008 deletions

View file

@ -1,7 +1,7 @@
import argparse
import logging
from core.api.grpc import clientw
from core.api.grpc import client
from core.api.grpc.wrappers import NodeType, Position
@ -11,10 +11,10 @@ def log_event(event):
def main(args):
# helper to create interfaces
interface_helper = clientw.InterfaceHelper(ip4_prefix="10.83.0.0/16")
interface_helper = client.InterfaceHelper(ip4_prefix="10.83.0.0/16")
# create grpc client and connect
core = clientw.CoreGrpcClient()
core = client.CoreGrpcClient()
core.connect()
# create session

View file

@ -1,13 +1,13 @@
# required imports
from core.api.grpc import clientw
from core.api.grpc import client
from core.api.grpc.wrappers import NodeType, Position
from core.emane.ieee80211abg import EmaneIeee80211abgModel
# interface helper
iface_helper = clientw.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 = clientw.CoreGrpcClient()
core = client.CoreGrpcClient()
core.connect()
# add session

View file

@ -1,11 +1,11 @@
from core.api.grpc import clientw
from core.api.grpc import client
from core.api.grpc.wrappers import Position
# interface helper
iface_helper = clientw.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 = clientw.CoreGrpcClient()
core = client.CoreGrpcClient()
core.connect()
# add session

View file

@ -1,11 +1,11 @@
from core.api.grpc import clientw
from core.api.grpc import client
from core.api.grpc.wrappers import NodeType, Position
# interface helper
iface_helper = clientw.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 = clientw.CoreGrpcClient()
core = client.CoreGrpcClient()
core.connect()
# add session

View file

@ -1,11 +1,11 @@
from core.api.grpc import clientw
from core.api.grpc import client
from core.api.grpc.wrappers import NodeType, Position
# interface helper
iface_helper = clientw.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 = clientw.CoreGrpcClient()
core = client.CoreGrpcClient()
core.connect()
# add session