open-traffic-generator / keng-operator

Other
6 stars 1 forks source link

Dev hw dut #25

Open anjan-keysight opened 2 years ago

anjan-keysight commented 2 years ago

@ashutshkumr Steps to config, create & delete topology:

  1. Deploy operator container docker run -d --privileged -v /var/run/docker.sock:/var/run/docker.sock --pid=host --net=host --user=root --name=operator --server-bind-address=:35000
  2. Load configmap curl --data-binary @ixia-configmap.yaml http://localhost:35000/config
  3. Create topology (ensure the requisite network interfaces exists on the host) curl -d @lagport http://localhost:35000/create
  4. Delete topology curl -d @lagport http://localhost:35000/delete

Ex lagport file: { "metadata": { "name": "otg", "namespace": "ixia-c" }, "spec": { "api_endpoint_map": { "https": { "in": 443 }, "grpc": { "in": 40051, "out": 0 }, "gnmi": { "in": 50051, "out": 31013 } }, "interfaces": [ { "name": "eth1", "group": "lag2", "peer": "localhost", "peer_interface": "veth1a" }, { "name": "eth2", "group": "lag1", "peer": "localhost", "peer_interface": "veth1b" }, { "name": "eth3", "group": "lag2", "peer": "localhost", "peer_interface": "veth2a" }, { "name": "eth4", "group": "lag2", "peer": "localhost", "peer_interface": "veth2b" } ], "release": "local-latest" } }