Multicast-IGMP Snooping

Configures, modifies, deletes and retrieves IGMP snooping configuration at the global and VLAN levels. Currently, querier mode and version commands are supported. POST operation is not supported at global level and PUT operation is not supported at global and VLAN level.

The URI to configure IGMP snooping at global level is:

/restconf/data/igmp-mld-snooping/global

The URI to configure IGMP snooping at VLAN level is:

/restconf/data/igmp-mld-snooping/vlans

Supported HTTP Operations

GET method (Global level)

URL: https://<host>/restconf/data/igmp-mld-snooping/global
Request body: None
Response body:     
{
    "icx-igmp-mld-snooping:global": {
        "igmp": {
            "config": {
                "querier-mode": "active",
                "version": 2
            }
        }
    }
}

PATCH method

URL: https://<host>/restconf/data/igmp-mld-snooping/global/igmp/config
Request body:
 {
    "config": {
        "querier-mode": "passive",
        "version": 3
    }
}
Response body: None    

DELETE

URL: https://<host>/restconf/data/igmp-mld-snooping/global/igmp/config

GET method (VLAN level)

URL: https://<host>/restconf/data/igmp-mld-snooping/vlans
Request body: None
Response body: {
    "icx-igmp-mld-snooping:vlans": {
        "vlan": [
            {
                "vlan-id": 20,
                "proto": {
                    "vlan-id": 20,
                    "igmp": {
                        "config": {
                            "querier-mode": "passive",
                            "version": 2
                        },
                        "oper": {}
                    }
                }
            }
        ]
    }
}    

POST method

URL: https://<host>/restconf/data/igmp-mld-snooping/vlans
Request body: {
          "vlan" : [
            {
                  "vlan-id" : 20,
                        "proto" : {
                           "vlan-id" : 20,
                          "igmp" : {
                             "config" : {
                                "querier-mode" : "active",
                                "version" : 3
                             }
                          }
                        }
            }
          ]
}

Response body: {
    "icx-igmp-mld-snooping:vlans": {
        "vlan": [
            {
                "vlan-id": 20,
                "proto": {
                    "vlan-id": 20,
                    "igmp": {
                        "config": {
                            "querier-mode": "active",
                            "version": 3
                        },
                        "oper": {}
                    }
                }
            }
        ]
    }
}

PATCH method

URL: https://<host>/restconf/data/igmp-mld-snooping/vlans
Request body: {
    "icx-igmp-mld-snooping:vlans": {
          "vlan" : [
            {
                  "vlan-id" : 20,
                        "proto" : {
                           "vlan-id" : 20,
                          "igmp" : {
                             "config" : {
                                "querie-mode" : "passive",
                                "version" : 2
                             }
                          }
                        }
            }
          ]
    }
}

Response body: {
    "icx-igmp-mld-snooping:vlans": {
        "vlan": [
            {
                "vlan-id": 20,
                "proto": {
                    "vlan-id": 20,
                    "igmp": {
                        "config": {
                            "querier-mode": "passive",
                            "version": 2
                        },
                        "oper": {}
                    }
                }
            }
        ]
    }
}

DELETE

URL: https://<host>/restconf/data/igmp-mld-snooping/vlans/vlan/20/proto/igmp/config