show forwarding multicast-sr internal-db
show forwarding multicast-sr internal-db
import json
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
"version": "1.0",
"type": "cli_show",
"chunk": "0",
"sid": "1",
"input": "show forwarding multicast-sr internal-db ",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"ins_api": {
"outputs": {
"output": {
"body": {
"TABLE_module": {
"ROW_module": {
"module_number": "1",
"sr-mode": "0",
"total-count": "0"
}
}
},
"code": "200",
"input": "show forwarding multicast-sr internal-db ",
"msg": "Success"
}
},
"sid": "eoc",
"type": "cli_show",
"version": "1.0"
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show forwarding multicast-sr internal-db command, see the CLI command reference:
CLI Output |
---|
|