1 # -*- coding: utf-8 -*-
4 # Copyright 2019 Tech Mahindra Limited
8 # Licensed under the Apache License, Version 2.0 (the "License"); you may
9 # not use this file except in compliance with the License. You may obtain
10 # a copy of the License at
12 # http://www.apache.org/licenses/LICENSE-2.0
14 # Unless required by applicable law or agreed to in writing, software
15 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
16 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
17 # License for the specific language governing permissions and limitations
23 ${success_return_code} 0
30 ${dpid} "a7:2f:aa:be:C3:c1:fe:C9"
35 [Documentation] create new sdnc account
37 ${rc} ${stdout}= Run and Return RC and Output osm sdnc-create --name ${name} --type ${type} --ip_address ${ip} --user ${user} --password ${password} --port ${port} --switch_dpid ${dpid}
40 Should Be Equal As Integers ${rc} ${success_return_code}
44 [Documentation] Get a sdnc account list
46 ${rc} ${stdout}= Run and Return RC and Output osm sdnc-list
51 [Documentation] Get sdnc account details
53 ${rc} ${stdout}= Run and Return RC and Output osm sdnc-show ${name}
56 Should Be Equal As Integers ${rc} ${success_return_code}
60 [Documentation] Get sdnc account details
62 ${rc} ${stdout}= Run and Return RC and Output osm sdnc-delete ${name}
65 Should Be Equal As Integers ${rc} ${success_return_code}