Esempio n. 1
0
    def __init__(self, *args, **kwargs):

        path_helper_ = kwargs.pop("path_helper", None)
        if path_helper_ is False:
            self._path_helper = False
        elif path_helper_ is not None and isinstance(
                path_helper_, xpathhelper.YANGPathHelper):
            self._path_helper = path_helper_
        elif hasattr(self, "_parent"):
            path_helper_ = getattr(self._parent, "_path_helper", False)
            self._path_helper = path_helper_
        else:
            self._path_helper = False

        extmethods = kwargs.pop("extmethods", None)
        if extmethods is False:
            self._extmethods = False
        elif extmethods is not None and isinstance(extmethods, dict):
            self._extmethods = extmethods
        elif hasattr(self, "_parent"):
            extmethods = getattr(self._parent, "_extmethods", None)
            self._extmethods = extmethods
        else:
            self._extmethods = False
        self.__nd = YANGDynClass(
            base=nd.nd,
            is_container='container',
            presence=False,
            yang_name="nd",
            rest_name="nd",
            parent=self,
            path_helper=self._path_helper,
            extmethods=self._extmethods,
            register_paths=True,
            extensions={
                u'tailf-common': {
                    u'info': u'Neighbor Discovery commands',
                    u'cli-incomplete-no': None,
                    u'sort-priority': u'110'
                }
            },
            namespace='urn:brocade.com:mgmt:brocade-ipv6-nd-ra',
            defining_module='brocade-ipv6-nd-ra',
            yang_type='container',
            is_config=True)
        self.__neighbor = YANGDynClass(
            base=YANGListType("ipv6_address",
                              neighbor.neighbor,
                              yang_name="neighbor",
                              rest_name="neighbor",
                              parent=self,
                              is_container='list',
                              user_ordered=False,
                              path_helper=self._path_helper,
                              yang_keys='ipv6-address',
                              extensions={
                                  u'tailf-common': {
                                      u'info': u'Neighbor Discovery commands',
                                      u'cli-no-key-completion': None,
                                      u'cli-suppress-mode': None,
                                      u'cli-suppress-list-no': None,
                                      u'cli-suppress-key-abbreviation': None,
                                      u'cli-incomplete-command': None,
                                      u'callpoint': u'IpV6NdRaNeighborPhyIntf'
                                  }
                              }),
            is_container='list',
            yang_name="neighbor",
            rest_name="neighbor",
            parent=self,
            path_helper=self._path_helper,
            extmethods=self._extmethods,
            register_paths=True,
            extensions={
                u'tailf-common': {
                    u'info': u'Neighbor Discovery commands',
                    u'cli-no-key-completion': None,
                    u'cli-suppress-mode': None,
                    u'cli-suppress-list-no': None,
                    u'cli-suppress-key-abbreviation': None,
                    u'cli-incomplete-command': None,
                    u'callpoint': u'IpV6NdRaNeighborPhyIntf'
                }
            },
            namespace='urn:brocade.com:mgmt:brocade-ipv6-nd-ra',
            defining_module='brocade-ipv6-nd-ra',
            yang_type='list',
            is_config=True)
        self.__vrrp_suppress_interface_ra = YANGDynClass(
            base=YANGBool,
            is_leaf=True,
            yang_name="vrrp-suppress-interface-ra",
            rest_name="vrrp-suppress-interface-ra",
            parent=self,
            path_helper=self._path_helper,
            extmethods=self._extmethods,
            register_paths=True,
            extensions={
                u'tailf-common': {
                    u'cli-full-command': None,
                    u'info': u'Suppress interface RA for vrrpv3'
                }
            },
            namespace='urn:brocade.com:mgmt:brocade-ipv6-nd-ra',
            defining_module='brocade-ipv6-nd-ra',
            yang_type='empty',
            is_config=True)

        load = kwargs.pop("load", None)
        if args:
            if len(args) > 1:
                raise TypeError(
                    "cannot create a YANG container with >1 argument")
            all_attr = True
            for e in self._pyangbind_elements:
                if not hasattr(args[0], e):
                    all_attr = False
                    break
            if not all_attr:
                raise ValueError(
                    "Supplied object did not have the correct attributes")
            for e in self._pyangbind_elements:
                nobj = getattr(args[0], e)
                if nobj._changed() is False:
                    continue
                setmethod = getattr(self, "_set_%s" % e)
                if load is None:
                    setmethod(getattr(args[0], e))
                else:
                    setmethod(getattr(args[0], e), load=load)
Esempio n. 2
0
    def __init__(self, *args, **kwargs):

        path_helper_ = kwargs.pop("path_helper", None)
        if path_helper_ is False:
            self._path_helper = False
        elif path_helper_ is not None and isinstance(
                path_helper_, xpathhelper.YANGPathHelper):
            self._path_helper = path_helper_
        elif hasattr(self, "_parent"):
            path_helper_ = getattr(self._parent, "_path_helper", False)
            self._path_helper = path_helper_
        else:
            self._path_helper = False

        extmethods = kwargs.pop("extmethods", None)
        if extmethods is False:
            self._extmethods = False
        elif extmethods is not None and isinstance(extmethods, dict):
            self._extmethods = extmethods
        elif hasattr(self, "_parent"):
            extmethods = getattr(self._parent, "_extmethods", None)
            self._extmethods = extmethods
        else:
            self._extmethods = False
        self.__alias_name = YANGDynClass(
            base=RestrictedClassType(base_type=unicode,
                                     restriction_dict={
                                         'pattern': u'[0-9a-zA-Z_]{1,64}',
                                         'length': [u'1..64']
                                     }),
            is_leaf=True,
            yang_name="alias-name",
            rest_name="alias-name",
            parent=self,
            path_helper=self._path_helper,
            extmethods=self._extmethods,
            register_paths=True,
            extensions={u'tailf-common': {
                u'info': u'<WORD>;;Alias-Name'
            }},
            is_keyval=True,
            namespace='urn:brocade.com:mgmt:brocade-zone',
            defining_module='brocade-zone',
            yang_type='string',
            is_config=True)
        self.__member_entry = YANGDynClass(
            base=YANGListType("alias_entry_name",
                              member_entry.member_entry,
                              yang_name="member-entry",
                              rest_name="member-entry",
                              parent=self,
                              is_container='list',
                              user_ordered=False,
                              path_helper=self._path_helper,
                              yang_keys='alias-entry-name',
                              extensions={
                                  u'tailf-common': {
                                      u'info':
                                      u'List of Members for Zone Alias',
                                      u'cli-no-key-completion': None,
                                      u'cli-suppress-mode': None,
                                      u'cli-suppress-list-no': None,
                                      u'cli-suppress-key-abbreviation': None,
                                      u'hidden': u'wyser-write-hook',
                                      u'callpoint':
                                      u'zone_defined_alias_member'
                                  }
                              }),
            is_container='list',
            yang_name="member-entry",
            rest_name="member-entry",
            parent=self,
            path_helper=self._path_helper,
            extmethods=self._extmethods,
            register_paths=True,
            extensions={
                u'tailf-common': {
                    u'info': u'List of Members for Zone Alias',
                    u'cli-no-key-completion': None,
                    u'cli-suppress-mode': None,
                    u'cli-suppress-list-no': None,
                    u'cli-suppress-key-abbreviation': None,
                    u'hidden': u'wyser-write-hook',
                    u'callpoint': u'zone_defined_alias_member'
                }
            },
            namespace='urn:brocade.com:mgmt:brocade-zone',
            defining_module='brocade-zone',
            yang_type='list',
            is_config=True)

        load = kwargs.pop("load", None)
        if args:
            if len(args) > 1:
                raise TypeError(
                    "cannot create a YANG container with >1 argument")
            all_attr = True
            for e in self._pyangbind_elements:
                if not hasattr(args[0], e):
                    all_attr = False
                    break
            if not all_attr:
                raise ValueError(
                    "Supplied object did not have the correct attributes")
            for e in self._pyangbind_elements:
                nobj = getattr(args[0], e)
                if nobj._changed() is False:
                    continue
                setmethod = getattr(self, "_set_%s" % e)
                if load is None:
                    setmethod(getattr(args[0], e))
                else:
                    setmethod(getattr(args[0], e), load=load)
Esempio n. 3
0
    def __init__(self, *args, **kwargs):

        path_helper_ = kwargs.pop("path_helper", None)
        if path_helper_ is False:
            self._path_helper = False
        elif path_helper_ is not None and isinstance(
                path_helper_, xpathhelper.YANGPathHelper):
            self._path_helper = path_helper_
        elif hasattr(self, "_parent"):
            path_helper_ = getattr(self._parent, "_path_helper", False)
            self._path_helper = path_helper_
        else:
            self._path_helper = False

        extmethods = kwargs.pop("extmethods", None)
        if extmethods is False:
            self._extmethods = False
        elif extmethods is not None and isinstance(extmethods, dict):
            self._extmethods = extmethods
        elif hasattr(self, "_parent"):
            extmethods = getattr(self._parent, "_extmethods", None)
            self._extmethods = extmethods
        else:
            self._extmethods = False
        self.__pfc = YANGDynClass(
            base=YANGListType("pfc_cos",
                              pfc.pfc,
                              yang_name="pfc",
                              rest_name="pfc",
                              parent=self,
                              is_container='list',
                              user_ordered=False,
                              path_helper=self._path_helper,
                              yang_keys='pfc-cos',
                              extensions={
                                  u'tailf-common': {
                                      u'info':
                                      u'Priority-based Flow Control (PFC)',
                                      u'cli-no-key-completion': None,
                                      u'cli-suppress-mode': None,
                                      u'cli-suppress-list-no': None,
                                      u'callpoint': u'pfc_flowcontrol_te',
                                      u'cli-sequence-commands': None,
                                      u'cli-suppress-key-abbreviation': None,
                                      u'cli-incomplete-command': None,
                                      u'hidden': u'full',
                                      u'cli-full-no': None
                                  }
                              }),
            is_container='list',
            yang_name="pfc",
            rest_name="pfc",
            parent=self,
            path_helper=self._path_helper,
            extmethods=self._extmethods,
            register_paths=True,
            extensions={
                u'tailf-common': {
                    u'info': u'Priority-based Flow Control (PFC)',
                    u'cli-no-key-completion': None,
                    u'cli-suppress-mode': None,
                    u'cli-suppress-list-no': None,
                    u'callpoint': u'pfc_flowcontrol_te',
                    u'cli-sequence-commands': None,
                    u'cli-suppress-key-abbreviation': None,
                    u'cli-incomplete-command': None,
                    u'hidden': u'full',
                    u'cli-full-no': None
                }
            },
            namespace='urn:brocade.com:mgmt:brocade-qos-mls',
            defining_module='brocade-qos-mls',
            yang_type='list',
            is_config=True)
        self.__link_level_flowcontrol = YANGDynClass(
            base=link_level_flowcontrol.link_level_flowcontrol,
            is_container='container',
            presence=False,
            yang_name="link-level-flowcontrol",
            rest_name="",
            parent=self,
            path_helper=self._path_helper,
            extmethods=self._extmethods,
            register_paths=True,
            extensions={
                u'tailf-common': {
                    u'cli-drop-node-name': None,
                    u'cli-sequence-commands': None
                }
            },
            namespace='urn:brocade.com:mgmt:brocade-qos-mls',
            defining_module='brocade-qos-mls',
            yang_type='container',
            is_config=True)

        load = kwargs.pop("load", None)
        if args:
            if len(args) > 1:
                raise TypeError(
                    "cannot create a YANG container with >1 argument")
            all_attr = True
            for e in self._pyangbind_elements:
                if not hasattr(args[0], e):
                    all_attr = False
                    break
            if not all_attr:
                raise ValueError(
                    "Supplied object did not have the correct attributes")
            for e in self._pyangbind_elements:
                nobj = getattr(args[0], e)
                if nobj._changed() is False:
                    continue
                setmethod = getattr(self, "_set_%s" % e)
                if load is None:
                    setmethod(getattr(args[0], e))
                else:
                    setmethod(getattr(args[0], e), load=load)
Esempio n. 4
0
    def _set_route(self, v, load=False):
        """
    Setter method for route, mapped from YANG variable /ipv6/ipv6route/route (list)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_route is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_route() directly.
    """
        if hasattr(v, "_utype"):
            v = v._utype(v)
        try:
            t = YANGDynClass(
                v,
                base=YANGListType("dest",
                                  route.route,
                                  yang_name="route",
                                  rest_name="route",
                                  parent=self,
                                  is_container='list',
                                  user_ordered=False,
                                  path_helper=self._path_helper,
                                  yang_keys='dest',
                                  extensions={
                                      u'tailf-common': {
                                          u'info':
                                          u'Configure ipv6 static route',
                                          u'cli-suppress-list-no': None,
                                          u'hidden': u'full',
                                          u'cli-suppress-mode': None,
                                          u'cli-full-no': None
                                      }
                                  }),
                is_container='list',
                yang_name="route",
                rest_name="route",
                parent=self,
                path_helper=self._path_helper,
                extmethods=self._extmethods,
                register_paths=True,
                extensions={
                    u'tailf-common': {
                        u'info': u'Configure ipv6 static route',
                        u'cli-suppress-list-no': None,
                        u'hidden': u'full',
                        u'cli-suppress-mode': None,
                        u'cli-full-no': None
                    }
                },
                namespace='urn:brocade.com:mgmt:brocade-ip-forward',
                defining_module='brocade-ip-forward',
                yang_type='list',
                is_config=True)
        except (TypeError, ValueError):
            raise ValueError({
                'error-string':
                """route must be of a type compatible with list""",
                'defined-type':
                "list",
                'generated-type':
                """YANGDynClass(base=YANGListType("dest",route.route, yang_name="route", rest_name="route", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='dest', extensions={u'tailf-common': {u'info': u'Configure ipv6 static route', u'cli-suppress-list-no': None, u'hidden': u'full', u'cli-suppress-mode': None, u'cli-full-no': None}}), is_container='list', yang_name="route", rest_name="route", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Configure ipv6 static route', u'cli-suppress-list-no': None, u'hidden': u'full', u'cli-suppress-mode': None, u'cli-full-no': None}}, namespace='urn:brocade.com:mgmt:brocade-ip-forward', defining_module='brocade-ip-forward', yang_type='list', is_config=True)""",
            })

        self.__route = t
        if hasattr(self, '_set'):
            self._set()
Esempio n. 5
0
    def __init__(self, *args, **kwargs):

        path_helper_ = kwargs.pop("path_helper", None)
        if path_helper_ is False:
            self._path_helper = False
        elif path_helper_ is not None and isinstance(
                path_helper_, xpathhelper.YANGPathHelper):
            self._path_helper = path_helper_
        elif hasattr(self, "_parent"):
            path_helper_ = getattr(self._parent, "_path_helper", False)
            self._path_helper = path_helper_
        else:
            self._path_helper = False

        extmethods = kwargs.pop("extmethods", None)
        if extmethods is False:
            self._extmethods = False
        elif extmethods is not None and isinstance(extmethods, dict):
            self._extmethods = extmethods
        elif hasattr(self, "_parent"):
            extmethods = getattr(self._parent, "_extmethods", None)
            self._extmethods = extmethods
        else:
            self._extmethods = False
        self.__interface = YANGDynClass(
            base=YANGListType("interface_type interface_name",
                              interface.interface,
                              yang_name="interface",
                              rest_name="interface",
                              parent=self,
                              is_container='list',
                              user_ordered=False,
                              path_helper=self._path_helper,
                              yang_keys='interface-type interface-name',
                              extensions=None),
            is_container='list',
            yang_name="interface",
            rest_name="interface",
            parent=self,
            path_helper=self._path_helper,
            extmethods=self._extmethods,
            register_paths=False,
            extensions=None,
            namespace='urn:brocade.com:mgmt:brocade-interface-ext',
            defining_module='brocade-interface-ext',
            yang_type='list',
            is_config=True)
        self.__has_more = YANGDynClass(
            base=YANGBool,
            is_leaf=True,
            yang_name="has-more",
            rest_name="has-more",
            parent=self,
            path_helper=self._path_helper,
            extmethods=self._extmethods,
            register_paths=False,
            namespace='urn:brocade.com:mgmt:brocade-interface-ext',
            defining_module='brocade-interface-ext',
            yang_type='boolean',
            is_config=True)

        load = kwargs.pop("load", None)
        if args:
            if len(args) > 1:
                raise TypeError(
                    "cannot create a YANG container with >1 argument")
            all_attr = True
            for e in self._pyangbind_elements:
                if not hasattr(args[0], e):
                    all_attr = False
                    break
            if not all_attr:
                raise ValueError(
                    "Supplied object did not have the correct attributes")
            for e in self._pyangbind_elements:
                nobj = getattr(args[0], e)
                if nobj._changed() is False:
                    continue
                setmethod = getattr(self, "_set_%s" % e)
                if load is None:
                    setmethod(getattr(args[0], e))
                else:
                    setmethod(getattr(args[0], e), load=load)
Esempio n. 6
0
 def _unset_lsp(self):
   self.__lsp = YANGDynClass(base=YANGListType("lsp_name path_name",lsp.lsp, yang_name="lsp", rest_name="lsp", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='lsp-name path-name', extensions={u'tailf-common': {u'callpoint': u'mpls-rsvp-igp-sync-lsp-lsp-1'}}), is_container='list', yang_name="lsp", rest_name="lsp", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'callpoint': u'mpls-rsvp-igp-sync-lsp-lsp-1'}}, namespace='urn:brocade.com:mgmt:brocade-mpls-operational', defining_module='brocade-mpls-operational', yang_type='list', is_config=False)
Esempio n. 7
0
    def __init__(self, *args, **kwargs):

        path_helper_ = kwargs.pop("path_helper", None)
        if path_helper_ is False:
            self._path_helper = False
        elif path_helper_ is not None and isinstance(
                path_helper_, xpathhelper.YANGPathHelper):
            self._path_helper = path_helper_
        elif hasattr(self, "_parent"):
            path_helper_ = getattr(self._parent, "_path_helper", False)
            self._path_helper = path_helper_
        else:
            self._path_helper = False

        extmethods = kwargs.pop("extmethods", None)
        if extmethods is False:
            self._extmethods = False
        elif extmethods is not None and isinstance(extmethods, dict):
            self._extmethods = extmethods
        elif hasattr(self, "_parent"):
            extmethods = getattr(self._parent, "_extmethods", None)
            self._extmethods = extmethods
        else:
            self._extmethods = False
        self.__igmp_snooping_mrouters = YANGDynClass(
            base=YANGListType("vlan_id",
                              igmp_snooping_mrouters_.igmp_snooping_mrouters,
                              yang_name="igmp-snooping-mrouters",
                              rest_name="igmp-snooping-mrouters",
                              parent=self,
                              is_container='list',
                              user_ordered=False,
                              path_helper=self._path_helper,
                              yang_keys='vlan-id',
                              extensions={
                                  u'tailf-common': {
                                      u'callpoint':
                                      u'mc-hms-igmp-snooping-mrouter',
                                      u'cli-suppress-show-path': None
                                  }
                              }),
            is_container='list',
            yang_name="igmp-snooping-mrouters",
            rest_name="igmp-snooping-mrouters",
            parent=self,
            path_helper=self._path_helper,
            extmethods=self._extmethods,
            register_paths=True,
            extensions={
                u'tailf-common': {
                    u'callpoint': u'mc-hms-igmp-snooping-mrouter',
                    u'cli-suppress-show-path': None
                }
            },
            namespace='urn:brocade.com:mgmt:brocade-mc-hms-operational',
            defining_module='brocade-mc-hms-operational',
            yang_type='list',
            is_config=False)
        self.__vlan_id = YANGDynClass(
            base=RestrictedClassType(
                base_type=long,
                restriction_dict={'range': ['0..4294967295']},
                int_size=32),
            is_leaf=True,
            yang_name="vlan-id",
            rest_name="vlan-id",
            parent=self,
            path_helper=self._path_helper,
            extmethods=self._extmethods,
            register_paths=True,
            is_keyval=True,
            namespace='urn:brocade.com:mgmt:brocade-mc-hms-operational',
            defining_module='brocade-mc-hms-operational',
            yang_type='uint32',
            is_config=False)

        load = kwargs.pop("load", None)
        if args:
            if len(args) > 1:
                raise TypeError(
                    "cannot create a YANG container with >1 argument")
            all_attr = True
            for e in self._pyangbind_elements:
                if not hasattr(args[0], e):
                    all_attr = False
                    break
            if not all_attr:
                raise ValueError(
                    "Supplied object did not have the correct attributes")
            for e in self._pyangbind_elements:
                nobj = getattr(args[0], e)
                if nobj._changed() is False:
                    continue
                setmethod = getattr(self, "_set_%s" % e)
                if load is None:
                    setmethod(getattr(args[0], e))
                else:
                    setmethod(getattr(args[0], e), load=load)
Esempio n. 8
0
    def _set_tunnel_dst(self, v, load=False):
        """
    Setter method for tunnel_dst, mapped from YANG variable /overlay_gateway/site/tunnel_dst (list)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_tunnel_dst is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_tunnel_dst() directly.

    YANG Description: Site IP address configuration represents
destination IP of tunnel to the site. Tunnel will
not be setup without the IP address configuration.
    """
        if hasattr(v, "_utype"):
            v = v._utype(v)
        try:
            t = YANGDynClass(v,
                             base=YANGListType(
                                 "address",
                                 tunnel_dst.tunnel_dst,
                                 yang_name="tunnel-dst",
                                 rest_name="ip",
                                 parent=self,
                                 is_container='list',
                                 user_ordered=False,
                                 path_helper=self._path_helper,
                                 yang_keys='address',
                                 extensions={
                                     u'tailf-common': {
                                         u'info':
                                         u'IP configuration for site.',
                                         u'cli-suppress-mode': None,
                                         u'cli-compact-syntax': None,
                                         u'alt-name': u'ip',
                                         u'callpoint': u'overlay-site-ip-cp'
                                     }
                                 }),
                             is_container='list',
                             yang_name="tunnel-dst",
                             rest_name="ip",
                             parent=self,
                             path_helper=self._path_helper,
                             extmethods=self._extmethods,
                             register_paths=True,
                             extensions={
                                 u'tailf-common': {
                                     u'info': u'IP configuration for site.',
                                     u'cli-suppress-mode': None,
                                     u'cli-compact-syntax': None,
                                     u'alt-name': u'ip',
                                     u'callpoint': u'overlay-site-ip-cp'
                                 }
                             },
                             namespace='urn:brocade.com:mgmt:brocade-tunnels',
                             defining_module='brocade-tunnels',
                             yang_type='list',
                             is_config=True)
        except (TypeError, ValueError):
            raise ValueError({
                'error-string':
                """tunnel_dst must be of a type compatible with list""",
                'defined-type':
                "list",
                'generated-type':
                """YANGDynClass(base=YANGListType("address",tunnel_dst.tunnel_dst, yang_name="tunnel-dst", rest_name="ip", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='address', extensions={u'tailf-common': {u'info': u'IP configuration for site.', u'cli-suppress-mode': None, u'cli-compact-syntax': None, u'alt-name': u'ip', u'callpoint': u'overlay-site-ip-cp'}}), is_container='list', yang_name="tunnel-dst", rest_name="ip", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'IP configuration for site.', u'cli-suppress-mode': None, u'cli-compact-syntax': None, u'alt-name': u'ip', u'callpoint': u'overlay-site-ip-cp'}}, namespace='urn:brocade.com:mgmt:brocade-tunnels', defining_module='brocade-tunnels', yang_type='list', is_config=True)""",
            })

        self.__tunnel_dst = t
        if hasattr(self, '_set'):
            self._set()
Esempio n. 9
0
    def __init__(self, *args, **kwargs):

        path_helper_ = kwargs.pop("path_helper", None)
        if path_helper_ is False:
            self._path_helper = False
        elif path_helper_ is not None and isinstance(
                path_helper_, xpathhelper.YANGPathHelper):
            self._path_helper = path_helper_
        elif hasattr(self, "_parent"):
            path_helper_ = getattr(self._parent, "_path_helper", False)
            self._path_helper = path_helper_
        else:
            self._path_helper = False

        extmethods = kwargs.pop("extmethods", None)
        if extmethods is False:
            self._extmethods = False
        elif extmethods is not None and isinstance(extmethods, dict):
            self._extmethods = extmethods
        elif hasattr(self, "_parent"):
            extmethods = getattr(self._parent, "_extmethods", None)
            self._extmethods = extmethods
        else:
            self._extmethods = False
        self.__name = YANGDynClass(
            base=RestrictedClassType(
                base_type=unicode,
                restriction_dict={'pattern': u'[-_a-zA-Z0-9]{1,63}'}),
            is_leaf=True,
            yang_name="name",
            rest_name="name",
            parent=self,
            path_helper=self._path_helper,
            extmethods=self._extmethods,
            register_paths=True,
            is_keyval=True,
            namespace='urn:brocade.com:mgmt:brocade-tunnels',
            defining_module='brocade-tunnels',
            yang_type='site-id-type',
            is_config=True)
        self.__extend = YANGDynClass(
            base=extend.extend,
            is_container='container',
            presence=False,
            yang_name="extend",
            rest_name="extend",
            parent=self,
            path_helper=self._path_helper,
            extmethods=self._extmethods,
            register_paths=True,
            extensions={
                u'tailf-common': {
                    u'info':
                    u'Configure layer2 domains to be extended towards\nthis site.'
                }
            },
            namespace='urn:brocade.com:mgmt:brocade-tunnels',
            defining_module='brocade-tunnels',
            yang_type='container',
            is_config=True)
        self.__bfd = YANGDynClass(
            base=bfd.bfd,
            is_container='container',
            presence=False,
            yang_name="bfd",
            rest_name="",
            parent=self,
            path_helper=self._path_helper,
            extmethods=self._extmethods,
            register_paths=True,
            extensions={u'tailf-common': {
                u'cli-drop-node-name': None
            }},
            namespace='urn:brocade.com:mgmt:brocade-tunnels',
            defining_module='brocade-tunnels',
            yang_type='container',
            is_config=True)
        self.__bfd_enable = YANGDynClass(
            base=YANGBool,
            is_leaf=True,
            yang_name="bfd-enable",
            rest_name="bfd",
            parent=self,
            path_helper=self._path_helper,
            extmethods=self._extmethods,
            register_paths=True,
            extensions={
                u'tailf-common': {
                    u'info':
                    u'Create BFD session for the tunnels to the remote site.',
                    u'cli-full-command': None,
                    u'alt-name': u'bfd',
                    u'cli-full-no': None
                }
            },
            namespace='urn:brocade.com:mgmt:brocade-tunnels',
            defining_module='brocade-tunnels',
            yang_type='empty',
            is_config=True)
        self.__mac_learning = YANGDynClass(
            base=mac_learning.mac_learning,
            is_container='container',
            presence=False,
            yang_name="mac-learning",
            rest_name="mac-learning",
            parent=self,
            path_helper=self._path_helper,
            extmethods=self._extmethods,
            register_paths=True,
            extensions={
                u'tailf-common': {
                    u'info': u'Configure MAC learning mode',
                    u'cli-incomplete-no': None
                }
            },
            namespace='urn:brocade.com:mgmt:brocade-tunnels',
            defining_module='brocade-tunnels',
            yang_type='container',
            is_config=True)
        self.__shutdown = YANGDynClass(
            base=YANGBool,
            is_leaf=True,
            yang_name="shutdown",
            rest_name="shutdown",
            parent=self,
            path_helper=self._path_helper,
            extmethods=self._extmethods,
            register_paths=True,
            extensions={
                u'tailf-common': {
                    u'info': u'Admin disable tunnels to the remote site',
                    u'cli-full-command': None
                }
            },
            namespace='urn:brocade.com:mgmt:brocade-tunnels',
            defining_module='brocade-tunnels',
            yang_type='empty',
            is_config=True)
        self.__tunnel_dst = YANGDynClass(
            base=YANGListType("address",
                              tunnel_dst.tunnel_dst,
                              yang_name="tunnel-dst",
                              rest_name="ip",
                              parent=self,
                              is_container='list',
                              user_ordered=False,
                              path_helper=self._path_helper,
                              yang_keys='address',
                              extensions={
                                  u'tailf-common': {
                                      u'info': u'IP configuration for site.',
                                      u'cli-suppress-mode': None,
                                      u'cli-compact-syntax': None,
                                      u'alt-name': u'ip',
                                      u'callpoint': u'overlay-site-ip-cp'
                                  }
                              }),
            is_container='list',
            yang_name="tunnel-dst",
            rest_name="ip",
            parent=self,
            path_helper=self._path_helper,
            extmethods=self._extmethods,
            register_paths=True,
            extensions={
                u'tailf-common': {
                    u'info': u'IP configuration for site.',
                    u'cli-suppress-mode': None,
                    u'cli-compact-syntax': None,
                    u'alt-name': u'ip',
                    u'callpoint': u'overlay-site-ip-cp'
                }
            },
            namespace='urn:brocade.com:mgmt:brocade-tunnels',
            defining_module='brocade-tunnels',
            yang_type='list',
            is_config=True)

        load = kwargs.pop("load", None)
        if args:
            if len(args) > 1:
                raise TypeError(
                    "cannot create a YANG container with >1 argument")
            all_attr = True
            for e in self._pyangbind_elements:
                if not hasattr(args[0], e):
                    all_attr = False
                    break
            if not all_attr:
                raise ValueError(
                    "Supplied object did not have the correct attributes")
            for e in self._pyangbind_elements:
                nobj = getattr(args[0], e)
                if nobj._changed() is False:
                    continue
                setmethod = getattr(self, "_set_%s" % e)
                if load is None:
                    setmethod(getattr(args[0], e))
                else:
                    setmethod(getattr(args[0], e), load=load)
Esempio n. 10
0
    def __init__(self, *args, **kwargs):

        path_helper_ = kwargs.pop("path_helper", None)
        if path_helper_ is False:
            self._path_helper = False
        elif path_helper_ is not None and isinstance(
                path_helper_, xpathhelper.YANGPathHelper):
            self._path_helper = path_helper_
        elif hasattr(self, "_parent"):
            path_helper_ = getattr(self._parent, "_path_helper", False)
            self._path_helper = path_helper_
        else:
            self._path_helper = False

        extmethods = kwargs.pop("extmethods", None)
        if extmethods is False:
            self._extmethods = False
        elif extmethods is not None and isinstance(extmethods, dict):
            self._extmethods = extmethods
        elif hasattr(self, "_parent"):
            extmethods = getattr(self._parent, "_extmethods", None)
            self._extmethods = extmethods
        else:
            self._extmethods = False
        self.__bridge_domain_counter = YANGDynClass(
            base=bridge_domain_counter.bridge_domain_counter,
            is_container='container',
            presence=False,
            yang_name="bridge-domain-counter",
            rest_name="bridge-domain-counter",
            parent=self,
            path_helper=self._path_helper,
            extmethods=self._extmethods,
            register_paths=True,
            extensions={
                u'tailf-common': {
                    u'callpoint': u'nsm-bridge-domain-counter',
                    u'cli-suppress-show-path': None
                }
            },
            namespace='urn:brocade.com:mgmt:brocade-nsm-operational',
            defining_module='brocade-nsm-operational',
            yang_type='container',
            is_config=False)
        self.__bridge_domain_list = YANGDynClass(
            base=YANGListType("bd_id",
                              bridge_domain_list.bridge_domain_list,
                              yang_name="bridge-domain-list",
                              rest_name="bridge-domain-list",
                              parent=self,
                              is_container='list',
                              user_ordered=False,
                              path_helper=self._path_helper,
                              yang_keys='bd-id',
                              extensions={
                                  u'tailf-common': {
                                      u'callpoint': u'nsm-bridge-domain-node',
                                      u'cli-suppress-show-path': None
                                  }
                              }),
            is_container='list',
            yang_name="bridge-domain-list",
            rest_name="bridge-domain-list",
            parent=self,
            path_helper=self._path_helper,
            extmethods=self._extmethods,
            register_paths=True,
            extensions={
                u'tailf-common': {
                    u'callpoint': u'nsm-bridge-domain-node',
                    u'cli-suppress-show-path': None
                }
            },
            namespace='urn:brocade.com:mgmt:brocade-nsm-operational',
            defining_module='brocade-nsm-operational',
            yang_type='list',
            is_config=False)

        load = kwargs.pop("load", None)
        if args:
            if len(args) > 1:
                raise TypeError(
                    "cannot create a YANG container with >1 argument")
            all_attr = True
            for e in self._pyangbind_elements:
                if not hasattr(args[0], e):
                    all_attr = False
                    break
            if not all_attr:
                raise ValueError(
                    "Supplied object did not have the correct attributes")
            for e in self._pyangbind_elements:
                nobj = getattr(args[0], e)
                if nobj._changed() is False:
                    continue
                setmethod = getattr(self, "_set_%s" % e)
                if load is None:
                    setmethod(getattr(args[0], e))
                else:
                    setmethod(getattr(args[0], e), load=load)
Esempio n. 11
0
    def _set_policies(self, v, load=False):
        """
    Setter method for policies, mapped from YANG variable /secpolicy_sa/secpolicy/defined_policy/policies (list)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_policies is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_policies() directly.
    """
        if hasattr(v, "_utype"):
            v = v._utype(v)
        try:
            t = YANGDynClass(v,
                             base=YANGListType(
                                 "policy",
                                 policies.policies,
                                 yang_name="policies",
                                 rest_name="policies",
                                 parent=self,
                                 is_container='list',
                                 user_ordered=False,
                                 path_helper=self._path_helper,
                                 yang_keys='policy',
                                 extensions={
                                     u'tailf-common': {
                                         u'info': u'Security policy',
                                         u'cli-drop-node-name': None,
                                         u'callpoint':
                                         u'secpolicy_defined_policy',
                                         u'cli-suppress-list-no': None
                                     }
                                 }),
                             is_container='list',
                             yang_name="policies",
                             rest_name="policies",
                             parent=self,
                             path_helper=self._path_helper,
                             extmethods=self._extmethods,
                             register_paths=True,
                             extensions={
                                 u'tailf-common': {
                                     u'info': u'Security policy',
                                     u'cli-drop-node-name': None,
                                     u'callpoint': u'secpolicy_defined_policy',
                                     u'cli-suppress-list-no': None
                                 }
                             },
                             namespace='urn:brocade.com:mgmt:brocade-fc-auth',
                             defining_module='brocade-fc-auth',
                             yang_type='list',
                             is_config=True)
        except (TypeError, ValueError):
            raise ValueError({
                'error-string':
                """policies must be of a type compatible with list""",
                'defined-type':
                "list",
                'generated-type':
                """YANGDynClass(base=YANGListType("policy",policies.policies, yang_name="policies", rest_name="policies", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='policy', extensions={u'tailf-common': {u'info': u'Security policy', u'cli-drop-node-name': None, u'callpoint': u'secpolicy_defined_policy', u'cli-suppress-list-no': None}}), is_container='list', yang_name="policies", rest_name="policies", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Security policy', u'cli-drop-node-name': None, u'callpoint': u'secpolicy_defined_policy', u'cli-suppress-list-no': None}}, namespace='urn:brocade.com:mgmt:brocade-fc-auth', defining_module='brocade-fc-auth', yang_type='list', is_config=True)""",
            })

        self.__policies = t
        if hasattr(self, '_set'):
            self._set()
Esempio n. 12
0
    def _set_bridge_domain_list(self, v, load=False):
        """
    Setter method for bridge_domain_list, mapped from YANG variable /bridge_domain_state/bridge_domain_list (list)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_bridge_domain_list is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_bridge_domain_list() directly.

    YANG Description:  bridge domain node
    """
        if hasattr(v, "_utype"):
            v = v._utype(v)
        try:
            t = YANGDynClass(
                v,
                base=YANGListType("bd_id",
                                  bridge_domain_list.bridge_domain_list,
                                  yang_name="bridge-domain-list",
                                  rest_name="bridge-domain-list",
                                  parent=self,
                                  is_container='list',
                                  user_ordered=False,
                                  path_helper=self._path_helper,
                                  yang_keys='bd-id',
                                  extensions={
                                      u'tailf-common': {
                                          u'callpoint':
                                          u'nsm-bridge-domain-node',
                                          u'cli-suppress-show-path': None
                                      }
                                  }),
                is_container='list',
                yang_name="bridge-domain-list",
                rest_name="bridge-domain-list",
                parent=self,
                path_helper=self._path_helper,
                extmethods=self._extmethods,
                register_paths=True,
                extensions={
                    u'tailf-common': {
                        u'callpoint': u'nsm-bridge-domain-node',
                        u'cli-suppress-show-path': None
                    }
                },
                namespace='urn:brocade.com:mgmt:brocade-nsm-operational',
                defining_module='brocade-nsm-operational',
                yang_type='list',
                is_config=False)
        except (TypeError, ValueError):
            raise ValueError({
                'error-string':
                """bridge_domain_list must be of a type compatible with list""",
                'defined-type':
                "list",
                'generated-type':
                """YANGDynClass(base=YANGListType("bd_id",bridge_domain_list.bridge_domain_list, yang_name="bridge-domain-list", rest_name="bridge-domain-list", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='bd-id', extensions={u'tailf-common': {u'callpoint': u'nsm-bridge-domain-node', u'cli-suppress-show-path': None}}), is_container='list', yang_name="bridge-domain-list", rest_name="bridge-domain-list", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'callpoint': u'nsm-bridge-domain-node', u'cli-suppress-show-path': None}}, namespace='urn:brocade.com:mgmt:brocade-nsm-operational', defining_module='brocade-nsm-operational', yang_type='list', is_config=False)""",
            })

        self.__bridge_domain_list = t
        if hasattr(self, '_set'):
            self._set()
Esempio n. 13
0
    def _set_access_group(self, v, load=False):
        """
    Setter method for access_group, mapped from YANG variable /interface/gigabitethernet/ip_acl_interface/ip/access_group (list)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_access_group is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_access_group() directly.
    """
        if hasattr(v, "_utype"):
            v = v._utype(v)
        try:
            t = YANGDynClass(
                v,
                base=YANGListType("ip_access_list ip_direction",
                                  access_group.access_group,
                                  yang_name="access-group",
                                  rest_name="access-group",
                                  parent=self,
                                  is_container='list',
                                  user_ordered=False,
                                  path_helper=self._path_helper,
                                  yang_keys='ip-access-list ip-direction',
                                  extensions={
                                      u'tailf-common': {
                                          u'info':
                                          u'Configure IP Access group',
                                          u'cli-no-key-completion': None,
                                          u'cli-suppress-mode': None,
                                          u'cli-suppress-list-no': None,
                                          u'cli-compact-syntax': None,
                                          u'cli-sequence-commands': None,
                                          u'cli-suppress-key-abbreviation':
                                          None
                                      }
                                  }),
                is_container='list',
                yang_name="access-group",
                rest_name="access-group",
                parent=self,
                path_helper=self._path_helper,
                extmethods=self._extmethods,
                register_paths=True,
                extensions={
                    u'tailf-common': {
                        u'info': u'Configure IP Access group',
                        u'cli-no-key-completion': None,
                        u'cli-suppress-mode': None,
                        u'cli-suppress-list-no': None,
                        u'cli-compact-syntax': None,
                        u'cli-sequence-commands': None,
                        u'cli-suppress-key-abbreviation': None
                    }
                },
                namespace='urn:brocade.com:mgmt:brocade-ip-access-list',
                defining_module='brocade-ip-access-list',
                yang_type='list',
                is_config=True)
        except (TypeError, ValueError):
            raise ValueError({
                'error-string':
                """access_group must be of a type compatible with list""",
                'defined-type':
                "list",
                'generated-type':
                """YANGDynClass(base=YANGListType("ip_access_list ip_direction",access_group.access_group, yang_name="access-group", rest_name="access-group", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='ip-access-list ip-direction', extensions={u'tailf-common': {u'info': u'Configure IP Access group', u'cli-no-key-completion': None, u'cli-suppress-mode': None, u'cli-suppress-list-no': None, u'cli-compact-syntax': None, u'cli-sequence-commands': None, u'cli-suppress-key-abbreviation': None}}), is_container='list', yang_name="access-group", rest_name="access-group", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Configure IP Access group', u'cli-no-key-completion': None, u'cli-suppress-mode': None, u'cli-suppress-list-no': None, u'cli-compact-syntax': None, u'cli-sequence-commands': None, u'cli-suppress-key-abbreviation': None}}, namespace='urn:brocade.com:mgmt:brocade-ip-access-list', defining_module='brocade-ip-access-list', yang_type='list', is_config=True)""",
            })

        self.__access_group = t
        if hasattr(self, '_set'):
            self._set()
Esempio n. 14
0
 def _unset_alarm(self):
   self.__alarm = YANGDynClass(base=YANGListType("id",alarm.alarm, yang_name="alarm", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id', extensions=None), is_container='list', yang_name="alarm", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='list', is_config=False)
Esempio n. 15
0
    def __init__(self, *args, **kwargs):

        path_helper_ = kwargs.pop("path_helper", None)
        if path_helper_ is False:
            self._path_helper = False
        elif path_helper_ is not None and isinstance(
                path_helper_, xpathhelper.YANGPathHelper):
            self._path_helper = path_helper_
        elif hasattr(self, "_parent"):
            path_helper_ = getattr(self._parent, "_path_helper", False)
            self._path_helper = path_helper_
        else:
            self._path_helper = False

        extmethods = kwargs.pop("extmethods", None)
        if extmethods is False:
            self._extmethods = False
        elif extmethods is not None and isinstance(extmethods, dict):
            self._extmethods = extmethods
        elif hasattr(self, "_parent"):
            extmethods = getattr(self._parent, "_extmethods", None)
            self._extmethods = extmethods
        else:
            self._extmethods = False
        self.__queue = YANGDynClass(
            base=queue.queue,
            is_container='container',
            presence=False,
            yang_name="queue",
            rest_name="queue",
            parent=self,
            path_helper=self._path_helper,
            extmethods=self._extmethods,
            register_paths=True,
            extensions={
                u'tailf-common': {
                    u'info': u'Configure egress queueing',
                    u'cli-incomplete-no': None
                }
            },
            namespace='urn:brocade.com:mgmt:brocade-qos',
            defining_module='brocade-qos',
            yang_type='container',
            is_config=True)
        self.__rcv_queue = YANGDynClass(
            base=rcv_queue.rcv_queue,
            is_container='container',
            presence=False,
            yang_name="rcv-queue",
            rest_name="rcv-queue",
            parent=self,
            path_helper=self._path_helper,
            extmethods=self._extmethods,
            register_paths=True,
            extensions={
                u'tailf-common': {
                    u'info': u'Configure ingress queueing',
                    u'cli-incomplete-no': None
                }
            },
            namespace='urn:brocade.com:mgmt:brocade-qos',
            defining_module='brocade-qos',
            yang_type='container',
            is_config=True)
        self.__red_profile = YANGDynClass(
            base=YANGListType("profile_id",
                              red_profile.red_profile,
                              yang_name="red-profile",
                              rest_name="red-profile",
                              parent=self,
                              is_container='list',
                              user_ordered=False,
                              path_helper=self._path_helper,
                              yang_keys='profile-id',
                              extensions={
                                  u'tailf-common': {
                                      u'info': u'Configure RED profiles',
                                      u'cli-no-key-completion': None,
                                      u'cli-suppress-mode': None,
                                      u'sort-priority': u'47',
                                      u'cli-compact-syntax': None,
                                      u'cli-sequence-commands': None,
                                      u'cli-suppress-key-abbreviation': None,
                                      u'cli-incomplete-command': None,
                                      u'callpoint': u'qos_red_profile'
                                  }
                              }),
            is_container='list',
            yang_name="red-profile",
            rest_name="red-profile",
            parent=self,
            path_helper=self._path_helper,
            extmethods=self._extmethods,
            register_paths=True,
            extensions={
                u'tailf-common': {
                    u'info': u'Configure RED profiles',
                    u'cli-no-key-completion': None,
                    u'cli-suppress-mode': None,
                    u'sort-priority': u'47',
                    u'cli-compact-syntax': None,
                    u'cli-sequence-commands': None,
                    u'cli-suppress-key-abbreviation': None,
                    u'cli-incomplete-command': None,
                    u'callpoint': u'qos_red_profile'
                }
            },
            namespace='urn:brocade.com:mgmt:brocade-qos',
            defining_module='brocade-qos',
            yang_type='list',
            is_config=True)
        self.__map_ = YANGDynClass(
            base=map_.map_,
            is_container='container',
            presence=False,
            yang_name="map",
            rest_name="map",
            parent=self,
            path_helper=self._path_helper,
            extmethods=self._extmethods,
            register_paths=True,
            extensions={
                u'tailf-common': {
                    u'info': u'Configure QoS map',
                    u'cli-incomplete-no': None
                }
            },
            namespace='urn:brocade.com:mgmt:brocade-qos',
            defining_module='brocade-qos',
            yang_type='container',
            is_config=True)

        load = kwargs.pop("load", None)
        if args:
            if len(args) > 1:
                raise TypeError(
                    "cannot create a YANG container with >1 argument")
            all_attr = True
            for e in self._pyangbind_elements:
                if not hasattr(args[0], e):
                    all_attr = False
                    break
            if not all_attr:
                raise ValueError(
                    "Supplied object did not have the correct attributes")
            for e in self._pyangbind_elements:
                nobj = getattr(args[0], e)
                if nobj._changed() is False:
                    continue
                setmethod = getattr(self, "_set_%s" % e)
                if load is None:
                    setmethod(getattr(args[0], e))
                else:
                    setmethod(getattr(args[0], e), load=load)
Esempio n. 16
0
 def _unset_protocol_errors(self):
   self.__protocol_errors = YANGDynClass(base=YANGListType("error_type",protocol_errors.protocol_errors, yang_name="protocol-errors", rest_name="protocol-errors", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='error-type', extensions={u'tailf-common': {u'callpoint': u'mpls-protocol-errors', u'cli-suppress-show-path': None}}), is_container='list', yang_name="protocol-errors", rest_name="protocol-errors", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'callpoint': u'mpls-protocol-errors', u'cli-suppress-show-path': None}}, namespace='urn:brocade.com:mgmt:brocade-mpls-operational', defining_module='brocade-mpls-operational', yang_type='list', is_config=False)
Esempio n. 17
0
 def _unset_link(self):
   self.__link = YANGDynClass(base=YANGListType("ip_address nbr_ip_address",link.link, yang_name="link", rest_name="link", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='ip-address nbr-ip-address', extensions={u'tailf-common': {u'callpoint': u'mpls-rsvp-igp-sync-link', u'cli-suppress-show-path': None}}), is_container='list', yang_name="link", rest_name="link", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'callpoint': u'mpls-rsvp-igp-sync-link', u'cli-suppress-show-path': None}}, namespace='urn:brocade.com:mgmt:brocade-mpls-operational', defining_module='brocade-mpls-operational', yang_type='list', is_config=False)
Esempio n. 18
0
    def _set_suppressing_address(self, v, load=False):
        """
    Setter method for suppressing_address, mapped from YANG variable /interface/ethernet/ipv6/ipv6_nd_ra/ipv6_intf_cmds/nd/address/suppressing_address (list)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_suppressing_address is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_suppressing_address() directly.
    """
        if hasattr(v, "_utype"):
            v = v._utype(v)
        try:
            t = YANGDynClass(
                v,
                base=YANGListType("suppress_ipv6_address",
                                  suppressing_address.suppressing_address,
                                  yang_name="suppressing-address",
                                  rest_name="suppressing-address",
                                  parent=self,
                                  is_container='list',
                                  user_ordered=False,
                                  path_helper=self._path_helper,
                                  yang_keys='suppress-ipv6-address',
                                  extensions={
                                      u'tailf-common': {
                                          u'cli-no-key-completion': None,
                                          u'cli-suppress-mode': None,
                                          u'cli-incomplete-no': None,
                                          u'cli-suppress-list-no': None,
                                          u'cli-compact-syntax': None,
                                          u'cli-drop-node-name': None,
                                          u'cli-incomplete-command': None,
                                          u'callpoint':
                                          u'IpV6NdRaAddressPhyIntf'
                                      }
                                  }),
                is_container='list',
                yang_name="suppressing-address",
                rest_name="suppressing-address",
                parent=self,
                path_helper=self._path_helper,
                extmethods=self._extmethods,
                register_paths=True,
                extensions={
                    u'tailf-common': {
                        u'cli-no-key-completion': None,
                        u'cli-suppress-mode': None,
                        u'cli-incomplete-no': None,
                        u'cli-suppress-list-no': None,
                        u'cli-compact-syntax': None,
                        u'cli-drop-node-name': None,
                        u'cli-incomplete-command': None,
                        u'callpoint': u'IpV6NdRaAddressPhyIntf'
                    }
                },
                namespace='urn:brocade.com:mgmt:brocade-ipv6-nd-ra',
                defining_module='brocade-ipv6-nd-ra',
                yang_type='list',
                is_config=True)
        except (TypeError, ValueError):
            raise ValueError({
                'error-string':
                """suppressing_address must be of a type compatible with list""",
                'defined-type':
                "list",
                'generated-type':
                """YANGDynClass(base=YANGListType("suppress_ipv6_address",suppressing_address.suppressing_address, yang_name="suppressing-address", rest_name="suppressing-address", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='suppress-ipv6-address', extensions={u'tailf-common': {u'cli-no-key-completion': None, u'cli-suppress-mode': None, u'cli-incomplete-no': None, u'cli-suppress-list-no': None, u'cli-compact-syntax': None, u'cli-drop-node-name': None, u'cli-incomplete-command': None, u'callpoint': u'IpV6NdRaAddressPhyIntf'}}), is_container='list', yang_name="suppressing-address", rest_name="suppressing-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'cli-no-key-completion': None, u'cli-suppress-mode': None, u'cli-incomplete-no': None, u'cli-suppress-list-no': None, u'cli-compact-syntax': None, u'cli-drop-node-name': None, u'cli-incomplete-command': None, u'callpoint': u'IpV6NdRaAddressPhyIntf'}}, namespace='urn:brocade.com:mgmt:brocade-ipv6-nd-ra', defining_module='brocade-ipv6-nd-ra', yang_type='list', is_config=True)""",
            })

        self.__suppressing_address = t
        if hasattr(self, '_set'):
            self._set()
Esempio n. 19
0
    def _set_igmp_snooping_mrouters(self, v, load=False):
        """
    Setter method for igmp_snooping_mrouters, mapped from YANG variable /igmp_snooping_state/igmp_snooping_mrouters/igmp_snooping_mrouters (list)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_igmp_snooping_mrouters is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_igmp_snooping_mrouters() directly.

    YANG Description: Igmp snoopig mrouter info
    """
        if hasattr(v, "_utype"):
            v = v._utype(v)
        try:
            t = YANGDynClass(
                v,
                base=YANGListType(
                    "vlan_id",
                    igmp_snooping_mrouters_.igmp_snooping_mrouters,
                    yang_name="igmp-snooping-mrouters",
                    rest_name="igmp-snooping-mrouters",
                    parent=self,
                    is_container='list',
                    user_ordered=False,
                    path_helper=self._path_helper,
                    yang_keys='vlan-id',
                    extensions={
                        u'tailf-common': {
                            u'callpoint': u'mc-hms-igmp-snooping-mrouter',
                            u'cli-suppress-show-path': None
                        }
                    }),
                is_container='list',
                yang_name="igmp-snooping-mrouters",
                rest_name="igmp-snooping-mrouters",
                parent=self,
                path_helper=self._path_helper,
                extmethods=self._extmethods,
                register_paths=True,
                extensions={
                    u'tailf-common': {
                        u'callpoint': u'mc-hms-igmp-snooping-mrouter',
                        u'cli-suppress-show-path': None
                    }
                },
                namespace='urn:brocade.com:mgmt:brocade-mc-hms-operational',
                defining_module='brocade-mc-hms-operational',
                yang_type='list',
                is_config=False)
        except (TypeError, ValueError):
            raise ValueError({
                'error-string':
                """igmp_snooping_mrouters must be of a type compatible with list""",
                'defined-type':
                "list",
                'generated-type':
                """YANGDynClass(base=YANGListType("vlan_id",igmp_snooping_mrouters_.igmp_snooping_mrouters, yang_name="igmp-snooping-mrouters", rest_name="igmp-snooping-mrouters", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='vlan-id', extensions={u'tailf-common': {u'callpoint': u'mc-hms-igmp-snooping-mrouter', u'cli-suppress-show-path': None}}), is_container='list', yang_name="igmp-snooping-mrouters", rest_name="igmp-snooping-mrouters", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'callpoint': u'mc-hms-igmp-snooping-mrouter', u'cli-suppress-show-path': None}}, namespace='urn:brocade.com:mgmt:brocade-mc-hms-operational', defining_module='brocade-mc-hms-operational', yang_type='list', is_config=False)""",
            })

        self.__igmp_snooping_mrouters = t
        if hasattr(self, '_set'):
            self._set()
Esempio n. 20
0
    def __init__(self, *args, **kwargs):

        path_helper_ = kwargs.pop("path_helper", None)
        if path_helper_ is False:
            self._path_helper = False
        elif path_helper_ is not None and isinstance(
                path_helper_, xpathhelper.YANGPathHelper):
            self._path_helper = path_helper_
        elif hasattr(self, "_parent"):
            path_helper_ = getattr(self._parent, "_path_helper", False)
            self._path_helper = path_helper_
        else:
            self._path_helper = False

        extmethods = kwargs.pop("extmethods", None)
        if extmethods is False:
            self._extmethods = False
        elif extmethods is not None and isinstance(extmethods, dict):
            self._extmethods = extmethods
        elif hasattr(self, "_parent"):
            extmethods = getattr(self._parent, "_extmethods", None)
            self._extmethods = extmethods
        else:
            self._extmethods = False
        self.__suppressing_address = YANGDynClass(
            base=YANGListType("suppress_ipv6_address",
                              suppressing_address.suppressing_address,
                              yang_name="suppressing-address",
                              rest_name="suppressing-address",
                              parent=self,
                              is_container='list',
                              user_ordered=False,
                              path_helper=self._path_helper,
                              yang_keys='suppress-ipv6-address',
                              extensions={
                                  u'tailf-common': {
                                      u'cli-no-key-completion': None,
                                      u'cli-suppress-mode': None,
                                      u'cli-incomplete-no': None,
                                      u'cli-suppress-list-no': None,
                                      u'cli-compact-syntax': None,
                                      u'cli-drop-node-name': None,
                                      u'cli-incomplete-command': None,
                                      u'callpoint': u'IpV6NdRaAddressPhyIntf'
                                  }
                              }),
            is_container='list',
            yang_name="suppressing-address",
            rest_name="suppressing-address",
            parent=self,
            path_helper=self._path_helper,
            extmethods=self._extmethods,
            register_paths=True,
            extensions={
                u'tailf-common': {
                    u'cli-no-key-completion': None,
                    u'cli-suppress-mode': None,
                    u'cli-incomplete-no': None,
                    u'cli-suppress-list-no': None,
                    u'cli-compact-syntax': None,
                    u'cli-drop-node-name': None,
                    u'cli-incomplete-command': None,
                    u'callpoint': u'IpV6NdRaAddressPhyIntf'
                }
            },
            namespace='urn:brocade.com:mgmt:brocade-ipv6-nd-ra',
            defining_module='brocade-ipv6-nd-ra',
            yang_type='list',
            is_config=True)
        self.__address_suppress_all = YANGDynClass(
            base=YANGBool,
            is_leaf=True,
            yang_name="address-suppress-all",
            rest_name="suppress",
            parent=self,
            path_helper=self._path_helper,
            extmethods=self._extmethods,
            register_paths=True,
            extensions={
                u'tailf-common': {
                    u'info':
                    u'Suppress all IPv6 addresses in router advertisement',
                    u'cli-full-command': None,
                    u'alt-name': u'suppress',
                    u'cli-full-no': None
                }
            },
            namespace='urn:brocade.com:mgmt:brocade-ipv6-nd-ra',
            defining_module='brocade-ipv6-nd-ra',
            yang_type='empty',
            is_config=True)

        load = kwargs.pop("load", None)
        if args:
            if len(args) > 1:
                raise TypeError(
                    "cannot create a YANG container with >1 argument")
            all_attr = True
            for e in self._pyangbind_elements:
                if not hasattr(args[0], e):
                    all_attr = False
                    break
            if not all_attr:
                raise ValueError(
                    "Supplied object did not have the correct attributes")
            for e in self._pyangbind_elements:
                nobj = getattr(args[0], e)
                if nobj._changed() is False:
                    continue
                setmethod = getattr(self, "_set_%s" % e)
                if load is None:
                    setmethod(getattr(args[0], e))
                else:
                    setmethod(getattr(args[0], e), load=load)
Esempio n. 21
0
 def _unset_isis_intf(self):
   self.__isis_intf = YANGDynClass(base=YANGListType("intf_type intf_number",isis_intf.isis_intf, yang_name="isis-intf", rest_name="isis-intf", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='intf-type intf-number', extensions={u'tailf-common': {u'callpoint': u'isis-port-isis-info', u'cli-suppress-show-path': None}}), is_container='list', yang_name="isis-intf", rest_name="isis-intf", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'callpoint': u'isis-port-isis-info', u'cli-suppress-show-path': None}}, namespace='urn:brocade.com:mgmt:brocade-isis-operational', defining_module='brocade-isis-operational', yang_type='list', is_config=False)
Esempio n. 22
0
    def _set_protocol_errors(self, v, load=False):
        """
    Setter method for protocol_errors, mapped from YANG variable /mpls_state/ldp/statistics/ldp_protocol_errors_instance_since_clear/protocol_errors (list)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_protocol_errors is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_protocol_errors() directly.

    YANG Description: protocol errors
    """
        if hasattr(v, "_utype"):
            v = v._utype(v)
        try:
            t = YANGDynClass(
                v,
                base=YANGListType("error_type",
                                  protocol_errors.protocol_errors,
                                  yang_name="protocol-errors",
                                  rest_name="protocol-errors",
                                  parent=self,
                                  is_container='list',
                                  user_ordered=False,
                                  path_helper=self._path_helper,
                                  yang_keys='error-type',
                                  extensions={
                                      u'tailf-common': {
                                          u'callpoint':
                                          u'mpls-protocol-errors',
                                          u'cli-suppress-show-path': None
                                      }
                                  }),
                is_container='list',
                yang_name="protocol-errors",
                rest_name="protocol-errors",
                parent=self,
                path_helper=self._path_helper,
                extmethods=self._extmethods,
                register_paths=True,
                extensions={
                    u'tailf-common': {
                        u'callpoint': u'mpls-protocol-errors',
                        u'cli-suppress-show-path': None
                    }
                },
                namespace='urn:brocade.com:mgmt:brocade-mpls-operational',
                defining_module='brocade-mpls-operational',
                yang_type='list',
                is_config=False)
        except (TypeError, ValueError):
            raise ValueError({
                'error-string':
                """protocol_errors must be of a type compatible with list""",
                'defined-type':
                "list",
                'generated-type':
                """YANGDynClass(base=YANGListType("error_type",protocol_errors.protocol_errors, yang_name="protocol-errors", rest_name="protocol-errors", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='error-type', extensions={u'tailf-common': {u'callpoint': u'mpls-protocol-errors', u'cli-suppress-show-path': None}}), is_container='list', yang_name="protocol-errors", rest_name="protocol-errors", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'callpoint': u'mpls-protocol-errors', u'cli-suppress-show-path': None}}, namespace='urn:brocade.com:mgmt:brocade-mpls-operational', defining_module='brocade-mpls-operational', yang_type='list', is_config=False)""",
            })

        self.__protocol_errors = t
        if hasattr(self, '_set'):
            self._set()
Esempio n. 23
0
    def __init__(self, *args, **kwargs):

        path_helper_ = kwargs.pop("path_helper", None)
        if path_helper_ is False:
            self._path_helper = False
        elif path_helper_ is not None and isinstance(
                path_helper_, xpathhelper.YANGPathHelper):
            self._path_helper = path_helper_
        elif hasattr(self, "_parent"):
            path_helper_ = getattr(self._parent, "_path_helper", False)
            self._path_helper = path_helper_
        else:
            self._path_helper = False

        extmethods = kwargs.pop("extmethods", None)
        if extmethods is False:
            self._extmethods = False
        elif extmethods is not None and isinstance(extmethods, dict):
            self._extmethods = extmethods
        elif hasattr(self, "_parent"):
            extmethods = getattr(self._parent, "_extmethods", None)
            self._extmethods = extmethods
        else:
            self._extmethods = False
        self.__route = YANGDynClass(
            base=YANGListType("dest",
                              route.route,
                              yang_name="route",
                              rest_name="route",
                              parent=self,
                              is_container='list',
                              user_ordered=False,
                              path_helper=self._path_helper,
                              yang_keys='dest',
                              extensions={
                                  u'tailf-common': {
                                      u'info': u'Configure ipv6 static route',
                                      u'cli-suppress-list-no': None,
                                      u'hidden': u'full',
                                      u'cli-suppress-mode': None,
                                      u'cli-full-no': None
                                  }
                              }),
            is_container='list',
            yang_name="route",
            rest_name="route",
            parent=self,
            path_helper=self._path_helper,
            extmethods=self._extmethods,
            register_paths=True,
            extensions={
                u'tailf-common': {
                    u'info': u'Configure ipv6 static route',
                    u'cli-suppress-list-no': None,
                    u'hidden': u'full',
                    u'cli-suppress-mode': None,
                    u'cli-full-no': None
                }
            },
            namespace='urn:brocade.com:mgmt:brocade-ip-forward',
            defining_module='brocade-ip-forward',
            yang_type='list',
            is_config=True)

        load = kwargs.pop("load", None)
        if args:
            if len(args) > 1:
                raise TypeError(
                    "cannot create a YANG container with >1 argument")
            all_attr = True
            for e in self._pyangbind_elements:
                if not hasattr(args[0], e):
                    all_attr = False
                    break
            if not all_attr:
                raise ValueError(
                    "Supplied object did not have the correct attributes")
            for e in self._pyangbind_elements:
                nobj = getattr(args[0], e)
                if nobj._changed() is False:
                    continue
                setmethod = getattr(self, "_set_%s" % e)
                if load is None:
                    setmethod(getattr(args[0], e))
                else:
                    setmethod(getattr(args[0], e), load=load)
Esempio n. 24
0
 def _unset_neighbor(self):
   self.__neighbor = YANGDynClass(base=YANGListType("address",neighbor.neighbor, yang_name="neighbor", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='address', extensions=None), is_container='list', yang_name="neighbor", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/network-instance', defining_module='openconfig-network-instance', yang_type='list', is_config=True)
Esempio n. 25
0
    def _set_member_entry(self, v, load=False):
        """
    Setter method for member_entry, mapped from YANG variable /zoning/defined_configuration/alias/member_entry (list)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_member_entry is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_member_entry() directly.
    """
        if hasattr(v, "_utype"):
            v = v._utype(v)
        try:
            t = YANGDynClass(
                v,
                base=YANGListType("alias_entry_name",
                                  member_entry.member_entry,
                                  yang_name="member-entry",
                                  rest_name="member-entry",
                                  parent=self,
                                  is_container='list',
                                  user_ordered=False,
                                  path_helper=self._path_helper,
                                  yang_keys='alias-entry-name',
                                  extensions={
                                      u'tailf-common': {
                                          u'info':
                                          u'List of Members for Zone Alias',
                                          u'cli-no-key-completion':
                                          None,
                                          u'cli-suppress-mode':
                                          None,
                                          u'cli-suppress-list-no':
                                          None,
                                          u'cli-suppress-key-abbreviation':
                                          None,
                                          u'hidden':
                                          u'wyser-write-hook',
                                          u'callpoint':
                                          u'zone_defined_alias_member'
                                      }
                                  }),
                is_container='list',
                yang_name="member-entry",
                rest_name="member-entry",
                parent=self,
                path_helper=self._path_helper,
                extmethods=self._extmethods,
                register_paths=True,
                extensions={
                    u'tailf-common': {
                        u'info': u'List of Members for Zone Alias',
                        u'cli-no-key-completion': None,
                        u'cli-suppress-mode': None,
                        u'cli-suppress-list-no': None,
                        u'cli-suppress-key-abbreviation': None,
                        u'hidden': u'wyser-write-hook',
                        u'callpoint': u'zone_defined_alias_member'
                    }
                },
                namespace='urn:brocade.com:mgmt:brocade-zone',
                defining_module='brocade-zone',
                yang_type='list',
                is_config=True)
        except (TypeError, ValueError):
            raise ValueError({
                'error-string':
                """member_entry must be of a type compatible with list""",
                'defined-type':
                "list",
                'generated-type':
                """YANGDynClass(base=YANGListType("alias_entry_name",member_entry.member_entry, yang_name="member-entry", rest_name="member-entry", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='alias-entry-name', extensions={u'tailf-common': {u'info': u'List of Members for Zone Alias', u'cli-no-key-completion': None, u'cli-suppress-mode': None, u'cli-suppress-list-no': None, u'cli-suppress-key-abbreviation': None, u'hidden': u'wyser-write-hook', u'callpoint': u'zone_defined_alias_member'}}), is_container='list', yang_name="member-entry", rest_name="member-entry", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'List of Members for Zone Alias', u'cli-no-key-completion': None, u'cli-suppress-mode': None, u'cli-suppress-list-no': None, u'cli-suppress-key-abbreviation': None, u'hidden': u'wyser-write-hook', u'callpoint': u'zone_defined_alias_member'}}, namespace='urn:brocade.com:mgmt:brocade-zone', defining_module='brocade-zone', yang_type='list', is_config=True)""",
            })

        self.__member_entry = t
        if hasattr(self, '_set'):
            self._set()
Esempio n. 26
0
 def _unset_name(self):
   self.__name = YANGDynClass(base=YANGListType("name",name.name, yang_name="name", rest_name="name", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions={u'tailf-common': {u'info': u'Name of the role', u'cli-no-key-completion': None, u'cli-suppress-mode': None, u'cli-suppress-list-no': None, u'cli-compact-syntax': None, u'cli-suppress-key-abbreviation': None, u'callpoint': u'role_cp'}}), is_container='list', yang_name="name", rest_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Name of the role', u'cli-no-key-completion': None, u'cli-suppress-mode': None, u'cli-suppress-list-no': None, u'cli-compact-syntax': None, u'cli-suppress-key-abbreviation': None, u'callpoint': u'role_cp'}}, namespace='urn:brocade.com:mgmt:brocade-aaa', defining_module='brocade-aaa', yang_type='list', is_config=True)
Esempio n. 27
0
    def _set_pfc(self, v, load=False):
        """
    Setter method for pfc, mapped from YANG variable /interface/ethernet/qos/flowcontrol/pfc (list)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_pfc is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_pfc() directly.
    """
        if hasattr(v, "_utype"):
            v = v._utype(v)
        try:
            t = YANGDynClass(
                v,
                base=YANGListType("pfc_cos",
                                  pfc.pfc,
                                  yang_name="pfc",
                                  rest_name="pfc",
                                  parent=self,
                                  is_container='list',
                                  user_ordered=False,
                                  path_helper=self._path_helper,
                                  yang_keys='pfc-cos',
                                  extensions={
                                      u'tailf-common': {
                                          u'info':
                                          u'Priority-based Flow Control (PFC)',
                                          u'cli-no-key-completion': None,
                                          u'cli-suppress-mode': None,
                                          u'cli-suppress-list-no': None,
                                          u'callpoint': u'pfc_flowcontrol_te',
                                          u'cli-sequence-commands': None,
                                          u'cli-suppress-key-abbreviation':
                                          None,
                                          u'cli-incomplete-command': None,
                                          u'hidden': u'full',
                                          u'cli-full-no': None
                                      }
                                  }),
                is_container='list',
                yang_name="pfc",
                rest_name="pfc",
                parent=self,
                path_helper=self._path_helper,
                extmethods=self._extmethods,
                register_paths=True,
                extensions={
                    u'tailf-common': {
                        u'info': u'Priority-based Flow Control (PFC)',
                        u'cli-no-key-completion': None,
                        u'cli-suppress-mode': None,
                        u'cli-suppress-list-no': None,
                        u'callpoint': u'pfc_flowcontrol_te',
                        u'cli-sequence-commands': None,
                        u'cli-suppress-key-abbreviation': None,
                        u'cli-incomplete-command': None,
                        u'hidden': u'full',
                        u'cli-full-no': None
                    }
                },
                namespace='urn:brocade.com:mgmt:brocade-qos-mls',
                defining_module='brocade-qos-mls',
                yang_type='list',
                is_config=True)
        except (TypeError, ValueError):
            raise ValueError({
                'error-string':
                """pfc must be of a type compatible with list""",
                'defined-type':
                "list",
                'generated-type':
                """YANGDynClass(base=YANGListType("pfc_cos",pfc.pfc, yang_name="pfc", rest_name="pfc", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='pfc-cos', extensions={u'tailf-common': {u'info': u'Priority-based Flow Control (PFC)', u'cli-no-key-completion': None, u'cli-suppress-mode': None, u'cli-suppress-list-no': None, u'callpoint': u'pfc_flowcontrol_te', u'cli-sequence-commands': None, u'cli-suppress-key-abbreviation': None, u'cli-incomplete-command': None, u'hidden': u'full', u'cli-full-no': None}}), is_container='list', yang_name="pfc", rest_name="pfc", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Priority-based Flow Control (PFC)', u'cli-no-key-completion': None, u'cli-suppress-mode': None, u'cli-suppress-list-no': None, u'callpoint': u'pfc_flowcontrol_te', u'cli-sequence-commands': None, u'cli-suppress-key-abbreviation': None, u'cli-incomplete-command': None, u'hidden': u'full', u'cli-full-no': None}}, namespace='urn:brocade.com:mgmt:brocade-qos-mls', defining_module='brocade-qos-mls', yang_type='list', is_config=True)""",
            })

        self.__pfc = t
        if hasattr(self, '_set'):
            self._set()
Esempio n. 28
0
    def _set_red_profile(self, v, load=False):
        """
    Setter method for red_profile, mapped from YANG variable /qos/red_profile (list)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_red_profile is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_red_profile() directly.
    """
        if hasattr(v, "_utype"):
            v = v._utype(v)
        try:
            t = YANGDynClass(v,
                             base=YANGListType(
                                 "profile_id",
                                 red_profile.red_profile,
                                 yang_name="red-profile",
                                 rest_name="red-profile",
                                 parent=self,
                                 is_container='list',
                                 user_ordered=False,
                                 path_helper=self._path_helper,
                                 yang_keys='profile-id',
                                 extensions={
                                     u'tailf-common': {
                                         u'info': u'Configure RED profiles',
                                         u'cli-no-key-completion': None,
                                         u'cli-suppress-mode': None,
                                         u'sort-priority': u'47',
                                         u'cli-compact-syntax': None,
                                         u'cli-sequence-commands': None,
                                         u'cli-suppress-key-abbreviation':
                                         None,
                                         u'cli-incomplete-command': None,
                                         u'callpoint': u'qos_red_profile'
                                     }
                                 }),
                             is_container='list',
                             yang_name="red-profile",
                             rest_name="red-profile",
                             parent=self,
                             path_helper=self._path_helper,
                             extmethods=self._extmethods,
                             register_paths=True,
                             extensions={
                                 u'tailf-common': {
                                     u'info': u'Configure RED profiles',
                                     u'cli-no-key-completion': None,
                                     u'cli-suppress-mode': None,
                                     u'sort-priority': u'47',
                                     u'cli-compact-syntax': None,
                                     u'cli-sequence-commands': None,
                                     u'cli-suppress-key-abbreviation': None,
                                     u'cli-incomplete-command': None,
                                     u'callpoint': u'qos_red_profile'
                                 }
                             },
                             namespace='urn:brocade.com:mgmt:brocade-qos',
                             defining_module='brocade-qos',
                             yang_type='list',
                             is_config=True)
        except (TypeError, ValueError):
            raise ValueError({
                'error-string':
                """red_profile must be of a type compatible with list""",
                'defined-type':
                "list",
                'generated-type':
                """YANGDynClass(base=YANGListType("profile_id",red_profile.red_profile, yang_name="red-profile", rest_name="red-profile", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='profile-id', extensions={u'tailf-common': {u'info': u'Configure RED profiles', u'cli-no-key-completion': None, u'cli-suppress-mode': None, u'sort-priority': u'47', u'cli-compact-syntax': None, u'cli-sequence-commands': None, u'cli-suppress-key-abbreviation': None, u'cli-incomplete-command': None, u'callpoint': u'qos_red_profile'}}), is_container='list', yang_name="red-profile", rest_name="red-profile", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Configure RED profiles', u'cli-no-key-completion': None, u'cli-suppress-mode': None, u'sort-priority': u'47', u'cli-compact-syntax': None, u'cli-sequence-commands': None, u'cli-suppress-key-abbreviation': None, u'cli-incomplete-command': None, u'callpoint': u'qos_red_profile'}}, namespace='urn:brocade.com:mgmt:brocade-qos', defining_module='brocade-qos', yang_type='list', is_config=True)""",
            })

        self.__red_profile = t
        if hasattr(self, '_set'):
            self._set()
Esempio n. 29
0
 def _unset_zone(self):
   self.__zone = YANGDynClass(base=YANGListType("zone_name",zone.zone, yang_name="zone", rest_name="zone", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='zone-name', extensions={u'tailf-common': {u'info': u'List of defined Zones', u'cli-no-key-completion': None, u'cli-full-no': None, u'cli-suppress-key-abbreviation': None, u'cli-full-command': None, u'callpoint': u'zone_defined_zone'}}), is_container='list', yang_name="zone", rest_name="zone", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'List of defined Zones', u'cli-no-key-completion': None, u'cli-full-no': None, u'cli-suppress-key-abbreviation': None, u'cli-full-command': None, u'callpoint': u'zone_defined_zone'}}, namespace='urn:brocade.com:mgmt:brocade-zone', defining_module='brocade-zone', yang_type='list', is_config=True)
Esempio n. 30
0
    def _set_pim_interface_data(self, v, load=False):
        """
    Setter method for pim_interface_data, mapped from YANG variable /pim_global_state/interfaces/pim_interface_data (list)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_pim_interface_data is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_pim_interface_data() directly.

    YANG Description: PIM interface information
    """
        if hasattr(v, "_utype"):
            v = v._utype(v)
        try:
            t = YANGDynClass(
                v,
                base=YANGListType("interface_name interface_type",
                                  pim_interface_data.pim_interface_data,
                                  yang_name="pim-interface-data",
                                  rest_name="pim-interface-data",
                                  parent=self,
                                  is_container='list',
                                  user_ordered=False,
                                  path_helper=self._path_helper,
                                  yang_keys='interface-name interface-type',
                                  extensions={
                                      u'tailf-common': {
                                          u'callpoint':
                                          u'pim-pim-interface-data',
                                          u'cli-suppress-show-path': None
                                      }
                                  }),
                is_container='list',
                yang_name="pim-interface-data",
                rest_name="pim-interface-data",
                parent=self,
                path_helper=self._path_helper,
                extmethods=self._extmethods,
                register_paths=True,
                extensions={
                    u'tailf-common': {
                        u'callpoint': u'pim-pim-interface-data',
                        u'cli-suppress-show-path': None
                    }
                },
                namespace='urn:brocade.com:mgmt:brocade-pim-operational',
                defining_module='brocade-pim-operational',
                yang_type='list',
                is_config=False)
        except (TypeError, ValueError):
            raise ValueError({
                'error-string':
                """pim_interface_data must be of a type compatible with list""",
                'defined-type':
                "list",
                'generated-type':
                """YANGDynClass(base=YANGListType("interface_name interface_type",pim_interface_data.pim_interface_data, yang_name="pim-interface-data", rest_name="pim-interface-data", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='interface-name interface-type', extensions={u'tailf-common': {u'callpoint': u'pim-pim-interface-data', u'cli-suppress-show-path': None}}), is_container='list', yang_name="pim-interface-data", rest_name="pim-interface-data", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'callpoint': u'pim-pim-interface-data', u'cli-suppress-show-path': None}}, namespace='urn:brocade.com:mgmt:brocade-pim-operational', defining_module='brocade-pim-operational', yang_type='list', is_config=False)""",
            })

        self.__pim_interface_data = t
        if hasattr(self, '_set'):
            self._set()