-
Notifications
You must be signed in to change notification settings - Fork 106
Open
Description
Tries to create new Portchannel interface from gNMI/REST interface as per
But it failed with error "error-message":"PortChannel: PortChannel105 does not exist"
Which look expected from the code point of view
https://github.com/sonic-net/sonic-mgmt-common/pull/142/files#diff-753eb0e758dab69d496cdc202f7c75f8f26eceae09271978fe0b91d5b854c230L236
[ xfmr_intf.go #263 ]
curl -X PUT -k "https://localhost/restconf/data/openconfig-interfaces:interfaces/interface=PortChannel105" -H "accept: */*" -H "Content-Type: application/yang-data+json" -d "{\"openconfig-interfaces:interface\":[{\"name\":\"PortChannel105\",\"config\":{\"name\":\"PortChannel105\",\"mtu\":9000,\"description\":\"tst_pc\",\"enabled\":true},\"openconfig-if-aggregate:aggregation\":{\"config\":{\"min-links\":3}}}]}"
{"ietf-restconf:errors":{"error":[{"error-type":"application","error-tag":"invalid-value","error-message":"PortChannel: PortChannel105 does not exist"}]}}
HLD and Logs provided in HLD confirms that using PUT method we can create a new Portchannel, but codewise Replace operation should give an error for non existent ports.
What is the expected behavior here.
Also which operation is correct from REST and gNMI prospective.
@nagarwal03
Please help us in understanding this.
Metadata
Metadata
Assignees
Labels
No labels