Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev hw dut #25

Open
wants to merge 30 commits into
base: main
Choose a base branch
from
Open

Dev hw dut #25

wants to merge 30 commits into from

Conversation

anjan-keysight
Copy link
Collaborator

@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"
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants