class VMMCertificateRule(Mo): """ Mo doc not defined in techpub!!! """ meta = ClassMeta("cobra.model.aaa.VMMCertificateRule") meta.moClassName = "aaaVMMCertificateRule" meta.rnFormat = "vmmcert-[%(certDn)s]" meta.category = MoCategory.REGULAR meta.label = "VMM Agent Certificate Rule" meta.writeAccessMask = 0x3 meta.readAccessMask = 0x3 meta.isDomainable = False meta.isReadOnly = False meta.isConfigurable = True meta.isDeletable = True meta.isContextRoot = False meta.childClasses.add("cobra.model.tag.Tag") meta.childClasses.add("cobra.model.fault.Delegate") meta.childClasses.add("cobra.model.aaa.RbacAnnotation") meta.childClasses.add("cobra.model.tag.Annotation") meta.childNamesAndRnPrefix.append(("cobra.model.tag.Annotation", "annotationKey-")) meta.childNamesAndRnPrefix.append(("cobra.model.aaa.RbacAnnotation", "rbacDom-")) meta.childNamesAndRnPrefix.append(("cobra.model.tag.Tag", "tagKey-")) meta.childNamesAndRnPrefix.append(("cobra.model.fault.Delegate", "fd-")) meta.parentClasses.add("cobra.model.aaa.UserEp") meta.superClasses.add("cobra.model.aaa.Definition") meta.superClasses.add("cobra.model.pol.Obj") meta.superClasses.add("cobra.model.pol.Def") meta.superClasses.add("cobra.model.naming.NamedObject") meta.rnPrefixes = [ ('vmmcert-', True), ] prop = PropMeta("str", "annotation", "annotation", 38333, PropCategory.REGULAR) prop.label = "Annotation. Suggested format orchestrator:value" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 128)] prop.regex = ['[a-zA-Z0-9_.:-]+'] meta.props.add("annotation", prop) prop = PropMeta("str", "certDn", "certDn", 21959, PropCategory.REGULAR) prop.label = "Object DN" prop.isConfig = True prop.isAdmin = True prop.isCreateOnly = True prop.isNaming = True meta.props.add("certDn", prop) prop = PropMeta("str", "childAction", "childAction", 4, PropCategory.CHILD_ACTION) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("deleteAll", "deleteall", 16384) prop._addConstant("deleteNonPresent", "deletenonpresent", 8192) prop._addConstant("ignore", "ignore", 4096) meta.props.add("childAction", prop) prop = PropMeta("str", "descr", "descr", 5579, PropCategory.REGULAR) prop.label = "Description" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 128)] prop.regex = ['[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]+'] meta.props.add("descr", prop) prop = PropMeta("str", "dn", "dn", 1, PropCategory.DN) prop.label = "None" prop.isDn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("dn", prop) prop = PropMeta("str", "extMngdBy", "extMngdBy", 40472, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "undefined" prop._addConstant("msc", "msc", 1) prop._addConstant("undefined", "undefined", 0) meta.props.add("extMngdBy", prop) prop = PropMeta("str", "lcOwn", "lcOwn", 9, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "local" prop._addConstant("implicit", "implicit", 4) prop._addConstant("local", "local", 0) prop._addConstant("policy", "policy", 1) prop._addConstant("replica", "replica", 2) prop._addConstant("resolveOnBehalf", "resolvedonbehalf", 3) meta.props.add("lcOwn", prop) prop = PropMeta("str", "modTs", "modTs", 7, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "never" prop._addConstant("never", "never", 0) meta.props.add("modTs", prop) prop = PropMeta("str", "name", "name", 1219, PropCategory.REGULAR) prop.label = "Name" prop.isConfig = True prop.isAdmin = True prop.isCreateOnly = True prop.range = [(0, 64)] prop.regex = ['[a-zA-Z0-9_.:-]+'] meta.props.add("name", prop) prop = PropMeta("str", "nameAlias", "nameAlias", 28417, PropCategory.REGULAR) prop.label = "Name alias" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 63)] prop.regex = ['[a-zA-Z0-9_.-]+'] meta.props.add("nameAlias", prop) prop = PropMeta("str", "ownerKey", "ownerKey", 15230, PropCategory.REGULAR) prop.label = "None" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 128)] prop.regex = ['[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]+'] meta.props.add("ownerKey", prop) prop = PropMeta("str", "ownerTag", "ownerTag", 15231, PropCategory.REGULAR) prop.label = "None" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 64)] prop.regex = ['[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]+'] meta.props.add("ownerTag", prop) prop = PropMeta("str", "rn", "rn", 2, PropCategory.RN) prop.label = "None" prop.isRn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("rn", prop) prop = PropMeta("str", "status", "status", 3, PropCategory.STATUS) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("created", "created", 2) prop._addConstant("deleted", "deleted", 8) prop._addConstant("modified", "modified", 4) meta.props.add("status", prop) prop = PropMeta("str", "uid", "uid", 8, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True meta.props.add("uid", prop) meta.namingProps.append(getattr(meta.props, "certDn")) getattr(meta.props, "certDn").needDelimiter = True # Deployment Meta meta.deploymentQuery = True meta.deploymentType = "Fabric" def __init__(self, parentMoOrDn, certDn, markDirty=True, **creationProps): namingVals = [certDn] Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps)
class RtSpineBfdIpv6InstPol(Mo): """ Mo doc not defined in techpub!!! """ meta = TargetRelationMeta("cobra.model.bfd.RtSpineBfdIpv6InstPol", "cobra.model.infra.SpineAccNodePGrp") meta.moClassName = "bfdRtSpineBfdIpv6InstPol" meta.rnFormat = "rtinfraSpineBfdIpv6InstPol-[%(tDn)s]" meta.category = MoCategory.RELATIONSHIP_FROM_LOCAL meta.label = "Spine Switch Policy Group" meta.writeAccessMask = 0x8100000000001 meta.readAccessMask = 0x88100000000001 meta.isDomainable = False meta.isReadOnly = True meta.isConfigurable = False meta.isDeletable = False meta.isContextRoot = False meta.parentClasses.add("cobra.model.bfd.Ipv6InstPol") meta.superClasses.add("cobra.model.reln.From") meta.superClasses.add("cobra.model.reln.Inst") meta.superClasses.add("cobra.model.pol.NFromRef") meta.rnPrefixes = [ ('rtinfraSpineBfdIpv6InstPol-', True), ] prop = PropMeta("str", "childAction", "childAction", 4, PropCategory.CHILD_ACTION) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("deleteAll", "deleteall", 16384) prop._addConstant("deleteNonPresent", "deletenonpresent", 8192) prop._addConstant("ignore", "ignore", 4096) meta.props.add("childAction", prop) prop = PropMeta("str", "dn", "dn", 1, PropCategory.DN) prop.label = "None" prop.isDn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("dn", prop) prop = PropMeta("str", "lcOwn", "lcOwn", 9, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "local" prop._addConstant("implicit", "implicit", 4) prop._addConstant("local", "local", 0) prop._addConstant("policy", "policy", 1) prop._addConstant("replica", "replica", 2) prop._addConstant("resolveOnBehalf", "resolvedonbehalf", 3) meta.props.add("lcOwn", prop) prop = PropMeta("str", "modTs", "modTs", 7, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "never" prop._addConstant("never", "never", 0) meta.props.add("modTs", prop) prop = PropMeta("str", "rn", "rn", 2, PropCategory.RN) prop.label = "None" prop.isRn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("rn", prop) prop = PropMeta("str", "status", "status", 3, PropCategory.STATUS) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("created", "created", 2) prop._addConstant("deleted", "deleted", 8) prop._addConstant("modified", "modified", 4) meta.props.add("status", prop) prop = PropMeta("str", "tCl", "tCl", 34374, PropCategory.REGULAR) prop.label = "Target-class" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 10003 prop.defaultValueStr = "infraSpineAccNodePGrp" prop._addConstant("infraSpineAccNodePGrp", None, 10003) prop._addConstant("unspecified", "unspecified", 0) meta.props.add("tCl", prop) prop = PropMeta("str", "tDn", "tDn", 34373, PropCategory.REGULAR) prop.label = "Target-dn" prop.isConfig = True prop.isAdmin = True prop.isCreateOnly = True prop.isNaming = True meta.props.add("tDn", prop) meta.namingProps.append(getattr(meta.props, "tDn")) getattr(meta.props, "tDn").needDelimiter = True # Deployment Meta meta.deploymentQuery = True meta.deploymentType = "Ancestor" def __init__(self, parentMoOrDn, tDn, markDirty=True, **creationProps): namingVals = [tDn] Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps)
class InstTask(Mo): """ Mo doc not defined in techpub!!! """ meta = ClassMeta("cobra.model.comp.InstTask") meta.moClassName = "compInstTask" meta.rnFormat = "compInstTask-%(id)s" meta.category = MoCategory.TASK meta.label = "None" meta.writeAccessMask = 0x1 meta.readAccessMask = 0x5 meta.isDomainable = False meta.isReadOnly = True meta.isConfigurable = False meta.isDeletable = False meta.isContextRoot = False meta.parentClasses.add("cobra.model.action.LicensemgrSubj") meta.parentClasses.add("cobra.model.action.TopomgrSubj") meta.parentClasses.add("cobra.model.action.ObserverSubj") meta.parentClasses.add("cobra.model.action.SnmpdSubj") meta.parentClasses.add("cobra.model.action.VmmmgrSubj") meta.parentClasses.add("cobra.model.action.AnalyticsSubj") meta.parentClasses.add("cobra.model.action.ScripthandlerSubj") meta.parentClasses.add("cobra.model.action.ConfelemSubj") meta.parentClasses.add("cobra.model.action.EventmgrSubj") meta.parentClasses.add("cobra.model.action.OspaelemSubj") meta.parentClasses.add("cobra.model.action.VtapSubj") meta.parentClasses.add("cobra.model.action.OshSubj") meta.parentClasses.add("cobra.model.action.DhcpdSubj") meta.parentClasses.add("cobra.model.action.ObserverelemSubj") meta.parentClasses.add("cobra.model.action.DomainmgrSubj") meta.parentClasses.add("cobra.model.action.DbgrelemSubj") meta.parentClasses.add("cobra.model.action.PlgnhandlerSubj") meta.parentClasses.add("cobra.model.action.VleafelemSubj") meta.parentClasses.add("cobra.model.action.NxosmockSubj") meta.parentClasses.add("cobra.model.action.DbgrSubj") meta.parentClasses.add("cobra.model.action.PlatformmgrSubj") meta.parentClasses.add("cobra.model.action.AppliancedirectorSubj") meta.parentClasses.add("cobra.model.action.OpflexpSubj") meta.parentClasses.add("cobra.model.action.BootmgrSubj") meta.parentClasses.add("cobra.model.action.AeSubj") meta.parentClasses.add("cobra.model.action.PolicymgrSubj") meta.parentClasses.add("cobra.model.action.ExtXMLApiSubj") meta.parentClasses.add("cobra.model.action.OpflexelemSubj") meta.parentClasses.add("cobra.model.action.PolicyelemSubj") meta.parentClasses.add("cobra.model.action.PolicydistSubj") meta.parentClasses.add("cobra.model.action.IdmgrSubj") meta.parentClasses.add("cobra.model.action.EdmgrSubj") meta.superClasses.add("cobra.model.action.RInst") meta.superClasses.add("cobra.model.pol.ComplElem") meta.superClasses.add("cobra.model.task.Inst") meta.superClasses.add("cobra.model.action.Inst") meta.rnPrefixes = [ ('compInstTask-', True), ] prop = PropMeta("str", "childAction", "childAction", 4, PropCategory.CHILD_ACTION) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("deleteAll", "deleteall", 16384) prop._addConstant("deleteNonPresent", "deletenonpresent", 8192) prop._addConstant("ignore", "ignore", 4096) meta.props.add("childAction", prop) prop = PropMeta("str", "data", "data", 52, PropCategory.REGULAR) prop.label = "Data" prop.isImplicit = True prop.isAdmin = True prop.range = [(0, 512)] meta.props.add("data", prop) prop = PropMeta("str", "descr", "descr", 33, PropCategory.REGULAR) prop.label = "Description" prop.isImplicit = True prop.isAdmin = True prop.range = [(0, 128)] prop.regex = ['[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]+'] meta.props.add("descr", prop) prop = PropMeta("str", "dn", "dn", 1, PropCategory.DN) prop.label = "None" prop.isDn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("dn", prop) prop = PropMeta("str", "endTs", "endTs", 15575, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "never" prop._addConstant("never", "never", 0) meta.props.add("endTs", prop) prop = PropMeta("str", "fail", "fail", 46, PropCategory.REGULAR) prop.label = "Fail" prop.isImplicit = True prop.isAdmin = True meta.props.add("fail", prop) prop = PropMeta("str", "flags", "flags", 30392, PropCategory.REGULAR) prop.label = "Flags" prop.isImplicit = True prop.isAdmin = True meta.props.add("flags", prop) prop = PropMeta("str", "id", "id", 42689, PropCategory.REGULAR) prop.label = "ID" prop.isConfig = True prop.isAdmin = True prop.isCreateOnly = True prop.isNaming = True prop.defaultValue = 0 prop.defaultValueStr = "none" prop._addConstant("DeleteIsoFile", "deleteisofile", 3159) prop._addConstant("PrepIsoFile", "prepisofile", 3125) prop._addConstant("VMCreate", "vmcreate", 3123) prop._addConstant("VMDelete", "vmdelete", 3124) prop._addConstant("none", "none", 0) meta.props.add("id", prop) prop = PropMeta("str", "invErrCode", "invErrCode", 49, PropCategory.REGULAR) prop.label = "Remote Error Code" prop.isImplicit = True prop.isAdmin = True prop._addConstant("ERR-FILTER-illegal-format", None, 1140) prop._addConstant("ERR-FSM-no-such-state", None, 1160) prop._addConstant("ERR-HTTP-set-error", None, 1551) prop._addConstant("ERR-HTTPS-set-error", None, 1552) prop._addConstant("ERR-MO-CONFIG-child-object-cant-be-configured", None, 1130) prop._addConstant("ERR-MO-META-no-such-object-class", None, 1122) prop._addConstant("ERR-MO-PROPERTY-no-such-property", None, 1121) prop._addConstant("ERR-MO-PROPERTY-value-out-of-range", None, 1120) prop._addConstant("ERR-MO-access-denied", None, 1170) prop._addConstant("ERR-MO-deletion-rule-violation", None, 1107) prop._addConstant("ERR-MO-duplicate-object", None, 1103) prop._addConstant("ERR-MO-illegal-containment", None, 1106) prop._addConstant("ERR-MO-illegal-creation", None, 1105) prop._addConstant("ERR-MO-illegal-iterator-state", None, 1100) prop._addConstant("ERR-MO-illegal-object-lifecycle-transition", None, 1101) prop._addConstant("ERR-MO-naming-rule-violation", None, 1104) prop._addConstant("ERR-MO-object-not-found", None, 1102) prop._addConstant("ERR-MO-resource-allocation", None, 1150) prop._addConstant("ERR-aaa-config-modify-error", None, 1520) prop._addConstant("ERR-acct-realm-set-error", None, 1513) prop._addConstant("ERR-add-ctrlr", None, 1574) prop._addConstant("ERR-admin-passwd-set", None, 1522) prop._addConstant("ERR-api", None, 1571) prop._addConstant("ERR-auth-issue", None, 1548) prop._addConstant("ERR-auth-realm-set-error", None, 1514) prop._addConstant("ERR-authentication", None, 1534) prop._addConstant("ERR-authorization-required", None, 1535) prop._addConstant("ERR-connect", None, 1572) prop._addConstant("ERR-create-domain", None, 1562) prop._addConstant("ERR-create-keyring", None, 1560) prop._addConstant("ERR-create-role", None, 1526) prop._addConstant("ERR-create-user", None, 1524) prop._addConstant("ERR-delete-domain", None, 1564) prop._addConstant("ERR-delete-role", None, 1528) prop._addConstant("ERR-delete-user", None, 1523) prop._addConstant("ERR-domain-set-error", None, 1561) prop._addConstant("ERR-http-initializing", None, 1549) prop._addConstant("ERR-incompat-ctrlr-version", None, 1568) prop._addConstant("ERR-internal-error", None, 1540) prop._addConstant("ERR-invalid-args", None, 1569) prop._addConstant("ERR-invalid-delimiter", None, 1589) prop._addConstant("ERR-invalid-domain", None, 1588) prop._addConstant("ERR-invalid-domain-name", None, 1582) prop._addConstant("ERR-ldap-delete-error", None, 1510) prop._addConstant("ERR-ldap-get-error", None, 1509) prop._addConstant("ERR-ldap-group-modify-error", None, 1518) prop._addConstant("ERR-ldap-group-set-error", None, 1502) prop._addConstant("ERR-ldap-set-error", None, 1511) prop._addConstant("ERR-missing-method", None, 1546) prop._addConstant("ERR-modify-ctrlr-access", None, 1567) prop._addConstant("ERR-modify-ctrlr-dvs-version", None, 1576) prop._addConstant("ERR-modify-ctrlr-rootcont", None, 1575) prop._addConstant("ERR-modify-ctrlr-scope", None, 1573) prop._addConstant("ERR-modify-ctrlr-trig-inventory", None, 1577) prop._addConstant("ERR-modify-domain", None, 1563) prop._addConstant("ERR-modify-domain-encapmode", None, 1581) prop._addConstant("ERR-modify-domain-enfpref", None, 1578) prop._addConstant("ERR-modify-domain-mcastpool", None, 1579) prop._addConstant("ERR-modify-domain-mode", None, 1580) prop._addConstant("ERR-modify-domain-prefencapmode", None, 1584) prop._addConstant("ERR-modify-role", None, 1527) prop._addConstant("ERR-modify-user", None, 1525) prop._addConstant("ERR-modify-user-domain", None, 1565) prop._addConstant("ERR-modify-user-role", None, 1532) prop._addConstant("ERR-no-buf", None, 1570) prop._addConstant("ERR-passwd-set-failure", None, 1566) prop._addConstant("ERR-provider-group-modify-error", None, 1519) prop._addConstant("ERR-provider-group-set-error", None, 1512) prop._addConstant("ERR-radius-global-set-error", None, 1505) prop._addConstant("ERR-radius-group-set-error", None, 1501) prop._addConstant("ERR-radius-set-error", None, 1504) prop._addConstant("ERR-request-timeout", None, 1545) prop._addConstant("ERR-role-set-error", None, 1515) prop._addConstant("ERR-rsa-global-set-error", None, 1587) prop._addConstant("ERR-rsa-group-set-error", None, 1585) prop._addConstant("ERR-rsa-set-error", None, 1586) prop._addConstant("ERR-secondary-node", None, 1550) prop._addConstant("ERR-service-not-ready", None, 1539) prop._addConstant("ERR-set-password-strength-check", None, 1543) prop._addConstant("ERR-store-pre-login-banner-msg", None, 1521) prop._addConstant("ERR-tacacs-enable-error", None, 1508) prop._addConstant("ERR-tacacs-global-set-error", None, 1507) prop._addConstant("ERR-tacacs-group-set-error", None, 1503) prop._addConstant("ERR-tacacs-set-error", None, 1506) prop._addConstant("ERR-user-account-expired", None, 1536) prop._addConstant("ERR-user-set-error", None, 1517) prop._addConstant("ERR-xml-parse-error", None, 1547) prop._addConstant("communication-error", "communication-error", 1) prop._addConstant("none", "none", 0) meta.props.add("invErrCode", prop) prop = PropMeta("str", "invErrDescr", "invErrDescr", 50, PropCategory.REGULAR) prop.label = "Remote Error Description" prop.isImplicit = True prop.isAdmin = True prop.range = [(0, 128)] prop.regex = ['[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]+'] meta.props.add("invErrDescr", prop) prop = PropMeta("str", "invRslt", "invRslt", 48, PropCategory.REGULAR) prop.label = "Remote Result" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "not-applicable" prop._addConstant("capability-not-implemented-failure", "capability-not-implemented-failure", 16384) prop._addConstant("capability-not-implemented-ignore", "capability-not-implemented-ignore", 8192) prop._addConstant("capability-not-supported", "capability-not-supported", 32768) prop._addConstant("capability-unavailable", "capability-unavailable", 65536) prop._addConstant("end-point-failed", "end-point-failed", 32) prop._addConstant("end-point-protocol-error", "end-point-protocol-error", 64) prop._addConstant("end-point-unavailable", "end-point-unavailable", 16) prop._addConstant("extend-timeout", "extend-timeout", 134217728) prop._addConstant("failure", "failure", 1) prop._addConstant("fru-identity-indeterminate", "fru-identity-indeterminate", 4194304) prop._addConstant("fru-info-malformed", "fru-info-malformed", 8388608) prop._addConstant("fru-not-ready", "fru-not-ready", 67108864) prop._addConstant("fru-not-supported", "fru-not-supported", 536870912) prop._addConstant("fru-state-indeterminate", "fru-state-indeterminate", 33554432) prop._addConstant("fw-defect", "fw-defect", 256) prop._addConstant("hw-defect", "hw-defect", 512) prop._addConstant("illegal-fru", "illegal-fru", 16777216) prop._addConstant("intermittent-error", "intermittent-error", 1073741824) prop._addConstant("internal-error", "internal-error", 4) prop._addConstant("not-applicable", "not-applicable", 0) prop._addConstant("resource-capacity-exceeded", "resource-capacity-exceeded", 2048) prop._addConstant("resource-dependency", "resource-dependency", 4096) prop._addConstant("resource-unavailable", "resource-unavailable", 1024) prop._addConstant("service-not-implemented-fail", "service-not-implemented-fail", 262144) prop._addConstant("service-not-implemented-ignore", "service-not-implemented-ignore", 131072) prop._addConstant("service-not-supported", "service-not-supported", 524288) prop._addConstant("service-protocol-error", "service-protocol-error", 2097152) prop._addConstant("service-unavailable", "service-unavailable", 1048576) prop._addConstant("sw-defect", "sw-defect", 128) prop._addConstant("task-reset", "task-reset", 268435456) prop._addConstant("timeout", "timeout", 8) prop._addConstant("unidentified-fail", "unidentified-fail", 2) meta.props.add("invRslt", prop) prop = PropMeta("str", "lcOwn", "lcOwn", 9, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "local" prop._addConstant("implicit", "implicit", 4) prop._addConstant("local", "local", 0) prop._addConstant("policy", "policy", 1) prop._addConstant("replica", "replica", 2) prop._addConstant("resolveOnBehalf", "resolvedonbehalf", 3) meta.props.add("lcOwn", prop) prop = PropMeta("str", "modTs", "modTs", 7, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "never" prop._addConstant("never", "never", 0) meta.props.add("modTs", prop) prop = PropMeta("str", "oDn", "oDn", 51, PropCategory.REGULAR) prop.label = "Subject DN" prop.isImplicit = True prop.isAdmin = True meta.props.add("oDn", prop) prop = PropMeta("str", "operSt", "operSt", 15674, PropCategory.REGULAR) prop.label = "Completion" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "scheduled" prop._addConstant("cancelled", "cancelled", 3) prop._addConstant("completed", "completed", 2) prop._addConstant("crashsuspect", "crash-suspect", 7) prop._addConstant("failed", "failed", 4) prop._addConstant("indeterminate", "indeterminate", 5) prop._addConstant("processing", "processing", 1) prop._addConstant("ready", "ready", 8) prop._addConstant("scheduled", "scheduled", 0) prop._addConstant("suspended", "suspended", 6) meta.props.add("operSt", prop) prop = PropMeta("str", "originMinority", "originMinority", 54, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = False prop.defaultValueStr = "no" prop._addConstant("no", None, False) prop._addConstant("yes", None, True) meta.props.add("originMinority", prop) prop = PropMeta("str", "rn", "rn", 2, PropCategory.RN) prop.label = "None" prop.isRn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("rn", prop) prop = PropMeta("str", "runId", "runId", 45, PropCategory.REGULAR) prop.label = "ID" prop.isImplicit = True prop.isAdmin = True meta.props.add("runId", prop) prop = PropMeta("str", "startTs", "startTs", 36, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "never" prop._addConstant("never", "never", 0) meta.props.add("startTs", prop) prop = PropMeta("str", "startTx", "startTx", 36895, PropCategory.REGULAR) prop.label = "startTxId" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "none" prop._addConstant("none", "none", 0) meta.props.add("startTx", prop) prop = PropMeta("str", "status", "status", 3, PropCategory.STATUS) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("created", "created", 2) prop._addConstant("deleted", "deleted", 8) prop._addConstant("modified", "modified", 4) meta.props.add("status", prop) prop = PropMeta("str", "try", "try", 15574, PropCategory.REGULAR) prop.label = "Try" prop.isImplicit = True prop.isAdmin = True meta.props.add("try", prop) prop = PropMeta("str", "ts", "ts", 47, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "never" prop._addConstant("never", "never", 0) meta.props.add("ts", prop) meta.namingProps.append(getattr(meta.props, "id")) def __init__(self, parentMoOrDn, id, markDirty=True, **creationProps): namingVals = [id] Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps)
class ACont(Mo): meta = ClassMeta("cobra.model.adepg.ACont") meta.isAbstract = True meta.moClassName = "adepgACont" meta.moClassName = "adepgACont" meta.rnFormat = "" meta.category = MoCategory.REGULAR meta.label = "None" meta.writeAccessMask = 0x0 meta.readAccessMask = 0x0 meta.isDomainable = False meta.isReadOnly = False meta.isConfigurable = True meta.isDeletable = False meta.isContextRoot = False meta.superClasses.add("cobra.model.naming.NamedObject") meta.superClasses.add("cobra.model.adepg.Entity") meta.superClasses.add("cobra.model.naming.NamedIdentifiedObject") meta.concreteSubClasses.add("cobra.model.adepg.UserCont") meta.concreteSubClasses.add("cobra.model.adepg.EventCont") meta.concreteSubClasses.add("cobra.model.adepg.ResCont") meta.concreteSubClasses.add("cobra.model.adepg.GroupCont") meta.rnPrefixes = [ ] prop = PropMeta("str", "childAction", "childAction", 4, PropCategory.CHILD_ACTION) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("deleteAll", "deleteall", 16384) prop._addConstant("deleteNonPresent", "deletenonpresent", 8192) prop._addConstant("ignore", "ignore", 4096) meta.props.add("childAction", prop) prop = PropMeta("str", "descr", "descr", 43729, PropCategory.REGULAR) prop.label = "Description" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 128)] prop.regex = ['[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]+'] meta.props.add("descr", prop) prop = PropMeta("str", "dn", "dn", 1, PropCategory.DN) prop.label = "None" prop.isDn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("dn", prop) prop = PropMeta("str", "id", "id", 43618, PropCategory.REGULAR) prop.label = "Id" prop.isImplicit = True prop.isAdmin = True meta.props.add("id", prop) prop = PropMeta("str", "issues", "issues", 43620, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "none" prop._addConstant("connection-fault", "failed-to-connect-to-external-identity-server", 1) prop._addConstant("none", "none", 0) meta.props.add("issues", prop) prop = PropMeta("str", "name", "name", 43619, PropCategory.REGULAR) prop.label = "Name" prop.isImplicit = True prop.isAdmin = True prop.range = [(0, 128)] prop.regex = ['[a-zA-Z0-9_.:-]+'] meta.props.add("name", prop) prop = PropMeta("str", "nameAlias", "nameAlias", 28417, PropCategory.REGULAR) prop.label = "Name alias" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 63)] prop.regex = ['[a-zA-Z0-9_.-]+'] meta.props.add("nameAlias", prop) prop = PropMeta("str", "rn", "rn", 2, PropCategory.RN) prop.label = "None" prop.isRn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("rn", prop) prop = PropMeta("str", "status", "status", 3, PropCategory.STATUS) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("created", "created", 2) prop._addConstant("deleted", "deleted", 8) prop._addConstant("modified", "modified", 4) meta.props.add("status", prop) def __init__(self, parentMoOrDn, markDirty=True, **creationProps): namingVals = [] Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps)
class TrnsmtdBytes1qtr(Mo): """ A class that represents the most current statistics for transmitted bytes in a 1 quarter sampling interval. This class updates every day. """ meta = StatsClassMeta("cobra.model.comp.TrnsmtdBytes1qtr", "transmitted bytes") counter = CounterMeta("usage", CounterCategory.GAUGE, "bytes-per-second", "transmitted rate") counter._propRefs[PropCategory.IMPLICIT_LASTREADING] = "usageLast" counter._propRefs[PropCategory.IMPLICIT_MIN] = "usageMin" counter._propRefs[PropCategory.IMPLICIT_MAX] = "usageMax" counter._propRefs[PropCategory.IMPLICIT_AVG] = "usageAvg" counter._propRefs[PropCategory.IMPLICIT_SUSPECT] = "usageSpct" counter._propRefs[PropCategory.IMPLICIT_TOTAL] = "usageTtl" counter._propRefs[PropCategory.IMPLICIT_THRESHOLDED] = "usageThr" counter._propRefs[PropCategory.IMPLICIT_TREND_BASE] = "usageTrBase" counter._propRefs[PropCategory.IMPLICIT_TREND] = "usageTr" meta._counters.append(counter) meta.moClassName = "compTrnsmtdBytes1qtr" meta.rnFormat = "CDcompTrnsmtdBytes1qtr" meta.category = MoCategory.STATS_CURRENT meta.label = "current transmitted bytes stats in 1 quarter" meta.writeAccessMask = 0x1 meta.readAccessMask = 0x1 meta.isDomainable = False meta.isReadOnly = True meta.isConfigurable = False meta.isDeletable = False meta.isContextRoot = True meta.parentClasses.add("cobra.model.comp.Hv") meta.parentClasses.add("cobra.model.comp.HpNic") meta.parentClasses.add("cobra.model.comp.VNic") meta.parentClasses.add("cobra.model.comp.Vm") meta.superClasses.add("cobra.model.comp.TrnsmtdBytes") meta.superClasses.add("cobra.model.stats.Item") meta.superClasses.add("cobra.model.stats.Curr") meta.rnPrefixes = [ ('CDcompTrnsmtdBytes1qtr', False), ] prop = PropMeta("str", "childAction", "childAction", 4, PropCategory.CHILD_ACTION) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("deleteAll", "deleteall", 16384) prop._addConstant("deleteNonPresent", "deletenonpresent", 8192) prop._addConstant("ignore", "ignore", 4096) meta.props.add("childAction", prop) prop = PropMeta("str", "cnt", "cnt", 16212, PropCategory.REGULAR) prop.label = "Number of Collections During this Interval" prop.isImplicit = True prop.isAdmin = True meta.props.add("cnt", prop) prop = PropMeta("str", "dn", "dn", 1, PropCategory.DN) prop.label = "None" prop.isDn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("dn", prop) prop = PropMeta("str", "lastCollOffset", "lastCollOffset", 111, PropCategory.REGULAR) prop.label = "Collection Length" prop.isImplicit = True prop.isAdmin = True meta.props.add("lastCollOffset", prop) prop = PropMeta("str", "modTs", "modTs", 7, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "never" prop._addConstant("never", "never", 0) meta.props.add("modTs", prop) prop = PropMeta("str", "repIntvEnd", "repIntvEnd", 110, PropCategory.REGULAR) prop.label = "Reporting End Time" prop.isImplicit = True prop.isAdmin = True meta.props.add("repIntvEnd", prop) prop = PropMeta("str", "repIntvStart", "repIntvStart", 109, PropCategory.REGULAR) prop.label = "Reporting Start Time" prop.isImplicit = True prop.isAdmin = True meta.props.add("repIntvStart", prop) prop = PropMeta("str", "rn", "rn", 2, PropCategory.RN) prop.label = "None" prop.isRn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("rn", prop) prop = PropMeta("str", "status", "status", 3, PropCategory.STATUS) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("created", "created", 2) prop._addConstant("deleted", "deleted", 8) prop._addConstant("modified", "modified", 4) meta.props.add("status", prop) prop = PropMeta("str", "usageAvg", "usageAvg", 7718, PropCategory.IMPLICIT_AVG) prop.label = "transmitted rate average value" prop.isOper = True prop.isStats = True meta.props.add("usageAvg", prop) prop = PropMeta("str", "usageLast", "usageLast", 7712, PropCategory.IMPLICIT_LASTREADING) prop.label = "transmitted rate current value" prop.isOper = True prop.isStats = True meta.props.add("usageLast", prop) prop = PropMeta("str", "usageMax", "usageMax", 7717, PropCategory.IMPLICIT_MAX) prop.label = "transmitted rate maximum value" prop.isOper = True prop.isStats = True meta.props.add("usageMax", prop) prop = PropMeta("str", "usageMin", "usageMin", 7716, PropCategory.IMPLICIT_MIN) prop.label = "transmitted rate minimum value" prop.isOper = True prop.isStats = True meta.props.add("usageMin", prop) prop = PropMeta("str", "usageSpct", "usageSpct", 7719, PropCategory.IMPLICIT_SUSPECT) prop.label = "transmitted rate suspect count" prop.isOper = True prop.isStats = True meta.props.add("usageSpct", prop) prop = PropMeta("str", "usageThr", "usageThr", 7720, PropCategory.IMPLICIT_THRESHOLDED) prop.label = "transmitted rate thresholded flags" prop.isOper = True prop.isStats = True prop.defaultValue = 0 prop.defaultValueStr = "unspecified" prop._addConstant("avgCrit", "avg-severity-critical", 2199023255552) prop._addConstant("avgHigh", "avg-crossed-high-threshold", 68719476736) prop._addConstant("avgLow", "avg-crossed-low-threshold", 137438953472) prop._addConstant("avgMajor", "avg-severity-major", 1099511627776) prop._addConstant("avgMinor", "avg-severity-minor", 549755813888) prop._addConstant("avgRecovering", "avg-recovering", 34359738368) prop._addConstant("avgWarn", "avg-severity-warning", 274877906944) prop._addConstant("cumulativeCrit", "cumulative-severity-critical", 8192) prop._addConstant("cumulativeHigh", "cumulative-crossed-high-threshold", 256) prop._addConstant("cumulativeLow", "cumulative-crossed-low-threshold", 512) prop._addConstant("cumulativeMajor", "cumulative-severity-major", 4096) prop._addConstant("cumulativeMinor", "cumulative-severity-minor", 2048) prop._addConstant("cumulativeRecovering", "cumulative-recovering", 128) prop._addConstant("cumulativeWarn", "cumulative-severity-warning", 1024) prop._addConstant("lastReadingCrit", "lastreading-severity-critical", 64) prop._addConstant("lastReadingHigh", "lastreading-crossed-high-threshold", 2) prop._addConstant("lastReadingLow", "lastreading-crossed-low-threshold", 4) prop._addConstant("lastReadingMajor", "lastreading-severity-major", 32) prop._addConstant("lastReadingMinor", "lastreading-severity-minor", 16) prop._addConstant("lastReadingRecovering", "lastreading-recovering", 1) prop._addConstant("lastReadingWarn", "lastreading-severity-warning", 8) prop._addConstant("maxCrit", "max-severity-critical", 17179869184) prop._addConstant("maxHigh", "max-crossed-high-threshold", 536870912) prop._addConstant("maxLow", "max-crossed-low-threshold", 1073741824) prop._addConstant("maxMajor", "max-severity-major", 8589934592) prop._addConstant("maxMinor", "max-severity-minor", 4294967296) prop._addConstant("maxRecovering", "max-recovering", 268435456) prop._addConstant("maxWarn", "max-severity-warning", 2147483648) prop._addConstant("minCrit", "min-severity-critical", 134217728) prop._addConstant("minHigh", "min-crossed-high-threshold", 4194304) prop._addConstant("minLow", "min-crossed-low-threshold", 8388608) prop._addConstant("minMajor", "min-severity-major", 67108864) prop._addConstant("minMinor", "min-severity-minor", 33554432) prop._addConstant("minRecovering", "min-recovering", 2097152) prop._addConstant("minWarn", "min-severity-warning", 16777216) prop._addConstant("periodicCrit", "periodic-severity-critical", 1048576) prop._addConstant("periodicHigh", "periodic-crossed-high-threshold", 32768) prop._addConstant("periodicLow", "periodic-crossed-low-threshold", 65536) prop._addConstant("periodicMajor", "periodic-severity-major", 524288) prop._addConstant("periodicMinor", "periodic-severity-minor", 262144) prop._addConstant("periodicRecovering", "periodic-recovering", 16384) prop._addConstant("periodicWarn", "periodic-severity-warning", 131072) prop._addConstant("rateCrit", "rate-severity-critical", 36028797018963968) prop._addConstant("rateHigh", "rate-crossed-high-threshold", 1125899906842624) prop._addConstant("rateLow", "rate-crossed-low-threshold", 2251799813685248) prop._addConstant("rateMajor", "rate-severity-major", 18014398509481984) prop._addConstant("rateMinor", "rate-severity-minor", 9007199254740992) prop._addConstant("rateRecovering", "rate-recovering", 562949953421312) prop._addConstant("rateWarn", "rate-severity-warning", 4503599627370496) prop._addConstant("trendCrit", "trend-severity-critical", 281474976710656) prop._addConstant("trendHigh", "trend-crossed-high-threshold", 8796093022208) prop._addConstant("trendLow", "trend-crossed-low-threshold", 17592186044416) prop._addConstant("trendMajor", "trend-severity-major", 140737488355328) prop._addConstant("trendMinor", "trend-severity-minor", 70368744177664) prop._addConstant("trendRecovering", "trend-recovering", 4398046511104) prop._addConstant("trendWarn", "trend-severity-warning", 35184372088832) prop._addConstant("unspecified", None, 0) meta.props.add("usageThr", prop) prop = PropMeta("str", "usageTr", "usageTr", 7722, PropCategory.IMPLICIT_TREND) prop.label = "transmitted rate trend" prop.isOper = True prop.isStats = True meta.props.add("usageTr", prop) prop = PropMeta("str", "usageTrBase", "usageTrBase", 7721, PropCategory.IMPLICIT_TREND_BASE) prop.label = "transmitted rate trend baseline" prop.isOper = True prop.isStats = True meta.props.add("usageTrBase", prop) prop = PropMeta("str", "usageTtl", "usageTtl", 16363, PropCategory.IMPLICIT_TOTAL) prop.label = "transmitted rate total sum" prop.isOper = True prop.isStats = True meta.props.add("usageTtl", prop) def __init__(self, parentMoOrDn, markDirty=True, **creationProps): namingVals = [] Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps)
class ARRP(Mo): meta = ClassMeta("cobra.model.bgp.ARRP") meta.isAbstract = True meta.moClassName = "bgpARRP" meta.moClassName = "bgpARRP" meta.rnFormat = "" meta.category = MoCategory.REGULAR meta.label = "Abstraction of Route Reflector Profile" meta.writeAccessMask = 0x8000000001 meta.readAccessMask = 0x8000000001 meta.isDomainable = False meta.isReadOnly = False meta.isConfigurable = True meta.isDeletable = True meta.isContextRoot = False meta.childClasses.add("cobra.model.bgp.RRNodePEp") meta.childClasses.add("cobra.model.fault.Delegate") meta.childNamesAndRnPrefix.append(("cobra.model.bgp.RRNodePEp", "node-")) meta.childNamesAndRnPrefix.append(("cobra.model.fault.Delegate", "fd-")) meta.parentClasses.add("cobra.model.bgp.InstPol") meta.superClasses.add("cobra.model.fabric.ProtoComp") meta.superClasses.add("cobra.model.pol.Obj") meta.superClasses.add("cobra.model.pol.Comp") meta.superClasses.add("cobra.model.fabric.L3ProtoComp") meta.superClasses.add("cobra.model.naming.NamedObject") meta.concreteSubClasses.add("cobra.model.bgp.ExtRRP") meta.concreteSubClasses.add("cobra.model.bgp.RRP") meta.concreteSubClasses.add("cobra.model.bgp.ExtIntersiteRRP") meta.rnPrefixes = [] prop = PropMeta("str", "childAction", "childAction", 4, PropCategory.CHILD_ACTION) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("deleteAll", "deleteall", 16384) prop._addConstant("deleteNonPresent", "deletenonpresent", 8192) prop._addConstant("ignore", "ignore", 4096) meta.props.add("childAction", prop) prop = PropMeta("str", "descr", "descr", 5582, PropCategory.REGULAR) prop.label = "Description" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 128)] prop.regex = ['[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]+'] meta.props.add("descr", prop) prop = PropMeta("str", "dn", "dn", 1, PropCategory.DN) prop.label = "None" prop.isDn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("dn", prop) prop = PropMeta("str", "name", "name", 4991, PropCategory.REGULAR) prop.label = "Name" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 64)] prop.regex = ['[a-zA-Z0-9_.:-]+'] meta.props.add("name", prop) prop = PropMeta("str", "nameAlias", "nameAlias", 28417, PropCategory.REGULAR) prop.label = "Name alias" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 63)] prop.regex = ['[a-zA-Z0-9_.-]+'] meta.props.add("nameAlias", prop) prop = PropMeta("str", "rn", "rn", 2, PropCategory.RN) prop.label = "None" prop.isRn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("rn", prop) prop = PropMeta("str", "status", "status", 3, PropCategory.STATUS) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("created", "created", 2) prop._addConstant("deleted", "deleted", 8) prop._addConstant("modified", "modified", 4) meta.props.add("status", prop) # Deployment Meta meta.deploymentQuery = True meta.deploymentType = "Ancestor" def __init__(self, parentMoOrDn, markDirty=True, **creationProps): namingVals = [] Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps)
class RtNextTx(Mo): """ Mo doc not defined in techpub!!! """ meta = TargetRelationMeta("cobra.model.configpush.RtNextTx", "cobra.model.configpush.TxCont") meta.moClassName = "configpushRtNextTx" meta.rnFormat = "rtnextTx" meta.category = MoCategory.RELATIONSHIP_FROM_LOCAL meta.label = "None" meta.writeAccessMask = 0x1 meta.readAccessMask = 0x1 meta.isDomainable = False meta.isReadOnly = True meta.isConfigurable = False meta.isDeletable = False meta.isContextRoot = False meta.parentClasses.add("cobra.model.configpush.TxCont") meta.superClasses.add("cobra.model.reln.From") meta.superClasses.add("cobra.model.reln.Inst") meta.rnPrefixes = [ ('rtnextTx', False), ] prop = PropMeta("str", "childAction", "childAction", 4, PropCategory.CHILD_ACTION) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("deleteAll", "deleteall", 16384) prop._addConstant("deleteNonPresent", "deletenonpresent", 8192) prop._addConstant("ignore", "ignore", 4096) meta.props.add("childAction", prop) prop = PropMeta("str", "dn", "dn", 1, PropCategory.DN) prop.label = "None" prop.isDn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("dn", prop) prop = PropMeta("str", "lcOwn", "lcOwn", 9, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "local" prop._addConstant("implicit", "implicit", 4) prop._addConstant("local", "local", 0) prop._addConstant("policy", "policy", 1) prop._addConstant("replica", "replica", 2) prop._addConstant("resolveOnBehalf", "resolvedonbehalf", 3) meta.props.add("lcOwn", prop) prop = PropMeta("str", "modTs", "modTs", 7, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "never" prop._addConstant("never", "never", 0) meta.props.add("modTs", prop) prop = PropMeta("str", "rn", "rn", 2, PropCategory.RN) prop.label = "None" prop.isRn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("rn", prop) prop = PropMeta("str", "status", "status", 3, PropCategory.STATUS) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("created", "created", 2) prop._addConstant("deleted", "deleted", 8) prop._addConstant("modified", "modified", 4) meta.props.add("status", prop) prop = PropMeta("str", "tCl", "tCl", 26378, PropCategory.REGULAR) prop.label = "Target-class" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 9075 prop.defaultValueStr = "configpushTxCont" prop._addConstant("configpushTxCont", None, 9075) prop._addConstant("unspecified", "unspecified", 0) meta.props.add("tCl", prop) prop = PropMeta("str", "tDn", "tDn", 100, PropCategory.REGULAR) prop.label = "Target-dn" prop.isImplicit = True prop.isAdmin = True meta.props.add("tDn", prop) def __init__(self, parentMoOrDn, markDirty=True, **creationProps): namingVals = [] Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps)
class RtMrtr2Leaf(Mo): """ A target relation to the COOP leaf records. """ meta = TargetRelationMeta("cobra.model.coop.RtMrtr2Leaf", "cobra.model.coop.MrtrRec") meta.moClassName = "coopRtMrtr2Leaf" meta.rnFormat = "rtmrtr2Leaf-[%(tDn)s]" meta.category = MoCategory.RELATIONSHIP_FROM_LOCAL meta.label = "Mrouter Record" meta.writeAccessMask = 0x8008020040001 meta.readAccessMask = 0x8008020040001 meta.isDomainable = False meta.isReadOnly = True meta.isConfigurable = False meta.isDeletable = False meta.isContextRoot = False meta.parentClasses.add("cobra.model.coop.LeafRec") meta.superClasses.add("cobra.model.reln.From") meta.superClasses.add("cobra.model.reln.Inst") meta.rnPrefixes = [ ('rtmrtr2Leaf-', True), ] prop = PropMeta("str", "childAction", "childAction", 4, PropCategory.CHILD_ACTION) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("deleteAll", "deleteall", 16384) prop._addConstant("deleteNonPresent", "deletenonpresent", 8192) prop._addConstant("ignore", "ignore", 4096) meta.props.add("childAction", prop) prop = PropMeta("str", "dn", "dn", 1, PropCategory.DN) prop.label = "None" prop.isDn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("dn", prop) prop = PropMeta("str", "modTs", "modTs", 7, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "never" prop._addConstant("never", "never", 0) meta.props.add("modTs", prop) prop = PropMeta("str", "rn", "rn", 2, PropCategory.RN) prop.label = "None" prop.isRn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("rn", prop) prop = PropMeta("str", "status", "status", 3, PropCategory.STATUS) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("created", "created", 2) prop._addConstant("deleted", "deleted", 8) prop._addConstant("modified", "modified", 4) meta.props.add("status", prop) prop = PropMeta("str", "tCl", "tCl", 12652, PropCategory.REGULAR) prop.label = "Target-class" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 2579 prop.defaultValueStr = "coopMrtrRec" prop._addConstant("coopMrtrRec", None, 2579) prop._addConstant("unspecified", "unspecified", 0) meta.props.add("tCl", prop) prop = PropMeta("str", "tDn", "tDn", 12651, PropCategory.REGULAR) prop.label = "Target-dn" prop.isConfig = True prop.isAdmin = True prop.isCreateOnly = True prop.isNaming = True meta.props.add("tDn", prop) meta.namingProps.append(getattr(meta.props, "tDn")) getattr(meta.props, "tDn").needDelimiter = True def __init__(self, parentMoOrDn, tDn, markDirty=True, **creationProps): namingVals = [tDn] Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps)
class SnmpRule(Mo): """ The zoning rules for SNMP endpoint groups. """ meta = ClassMeta("cobra.model.actrl.SnmpRule") meta.moClassName = "actrlSnmpRule" meta.rnFormat = "sr-%(scopeId)s-s-%(sPcTag)s-d-%(dPcTag)s-f-%(fltId)s" meta.category = MoCategory.REGULAR meta.label = "Snmp Rule" meta.writeAccessMask = 0x101 meta.readAccessMask = 0x101 meta.isDomainable = False meta.isReadOnly = True meta.isConfigurable = False meta.isDeletable = False meta.isContextRoot = False meta.childClasses.add("cobra.model.actrl.RsToRedirDestGrp") meta.childClasses.add("cobra.model.actrl.RsToEpgConn") meta.childClasses.add("cobra.model.vz.RuleOwner") meta.childClasses.add("cobra.model.actrl.RsAuxRule") meta.childClasses.add("cobra.model.vz.TrCreatedBy") meta.childClasses.add("cobra.model.actrl.RsToEpgProt") meta.childClasses.add("cobra.model.actrl.RsToCopyDestGrp") meta.childClasses.add("cobra.model.vz.ObservableRuleOwner") meta.childClasses.add("cobra.model.actrl.RsToVlanCkt") meta.childClasses.add("cobra.model.fault.Delegate") meta.childClasses.add("cobra.model.actrl.RsToStsVNode") meta.childNamesAndRnPrefix.append( ("cobra.model.actrl.RsToRedirDestGrp", "rstoRedirDestGrp")) meta.childNamesAndRnPrefix.append( ("cobra.model.actrl.RsToCopyDestGrp", "rstoCopyDestGrp")) meta.childNamesAndRnPrefix.append( ("cobra.model.actrl.RsToEpgConn", "rstoEpgConn-")) meta.childNamesAndRnPrefix.append( ("cobra.model.vz.TrCreatedBy", "trCreatedBy-")) meta.childNamesAndRnPrefix.append( ("cobra.model.actrl.RsToEpgProt", "rstoEpgProt-")) meta.childNamesAndRnPrefix.append( ("cobra.model.actrl.RsToVlanCkt", "rstoVlanCkt-")) meta.childNamesAndRnPrefix.append( ("cobra.model.actrl.RsToStsVNode", "rstoStsVNode")) meta.childNamesAndRnPrefix.append( ("cobra.model.actrl.RsAuxRule", "rsAuxRule")) meta.childNamesAndRnPrefix.append( ("cobra.model.vz.ObservableRuleOwner", "oown-")) meta.childNamesAndRnPrefix.append(("cobra.model.vz.RuleOwner", "own-")) meta.childNamesAndRnPrefix.append(("cobra.model.fault.Delegate", "fd-")) meta.parentClasses.add("cobra.model.actrl.Scope") meta.superClasses.add("cobra.model.actrl.ARule") meta.superClasses.add("cobra.model.nw.FltRule") meta.superClasses.add("cobra.model.naming.NamedObject") meta.superClasses.add("cobra.model.pol.Obj") meta.superClasses.add("cobra.model.pol.Instr") meta.rnPrefixes = [ ('sr-', True), ('-s-', True), ('-d-', True), ('-f-', True), ] prop = PropMeta("str", "action", "action", 2155, PropCategory.REGULAR) prop.label = "Action" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 4 prop.defaultValueStr = "permit" prop._addConstant("analytics_vld", "enable-analytics", 512) prop._addConstant("copy", "copy", 32) prop._addConstant("count", "count", 1) prop._addConstant("deny", "deny", 16) prop._addConstant("log", "log", 2) prop._addConstant("no_stats", "no-stats", 256) prop._addConstant("permit", "permit", 4) prop._addConstant("redir", "redirect", 8) prop._addConstant("redir_override", "redir-override", 128) prop._addConstant("threshold_redir", "redirect-with-threshold", 64) meta.props.add("action", prop) prop = PropMeta("str", "actrlCfgFailedBmp", "actrlCfgFailedBmp", 14966, PropCategory.REGULAR) prop.label = "None" prop.isOper = True prop._addConstant("actrl:SnmpRuleaction_failed_flag", None, 8) prop._addConstant("actrl:SnmpRulectrctName_failed_flag", None, 16) prop._addConstant("actrl:SnmpRuledPcTag_failed_flag", None, 32) prop._addConstant("actrl:SnmpRuledescr_failed_flag", None, 4) prop._addConstant("actrl:SnmpRuledirection_failed_flag", None, 64) prop._addConstant("actrl:SnmpRulefltId_failed_flag", None, 128) prop._addConstant("actrl:SnmpRuleid_failed_flag", None, 256) prop._addConstant("actrl:SnmpRulelcOwn_failed_flag", None, -9223372036854775808) prop._addConstant("actrl:SnmpRulemarkDscp_failed_flag", None, 512) prop._addConstant("actrl:SnmpRulemodTs_failed_flag", None, 2305843009213693952) prop._addConstant("actrl:SnmpRulenameAlias_failed_flag", None, 2) prop._addConstant("actrl:SnmpRulename_failed_flag", None, 1) prop._addConstant("actrl:SnmpRuleprio_failed_flag", None, 4096) prop._addConstant("actrl:SnmpRuleqosGrp_failed_flag", None, 8192) prop._addConstant("actrl:SnmpRulesPcTag_failed_flag", None, 16384) prop._addConstant("actrl:SnmpRulescopeId_failed_flag", None, 32768) prop._addConstant("actrl:SnmpRuletype_failed_flag", None, 65536) meta.props.add("actrlCfgFailedBmp", prop) prop = PropMeta("str", "actrlCfgFailedTs", "actrlCfgFailedTs", 14968, PropCategory.REGULAR) prop.label = "None" prop.isOper = True meta.props.add("actrlCfgFailedTs", prop) prop = PropMeta("str", "actrlCfgState", "actrlCfgState", 14967, PropCategory.REGULAR) prop.label = "None" prop.isOper = True meta.props.add("actrlCfgState", prop) prop = PropMeta("str", "childAction", "childAction", 4, PropCategory.CHILD_ACTION) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("deleteAll", "deleteall", 16384) prop._addConstant("deleteNonPresent", "deletenonpresent", 8192) prop._addConstant("ignore", "ignore", 4096) meta.props.add("childAction", prop) prop = PropMeta("str", "ctrctName", "ctrctName", 42284, PropCategory.REGULAR) prop.label = "Contract name" prop.isImplicit = True prop.isAdmin = True prop.range = [(0, 16)] prop.regex = ['[a-zA-Z0-9_.:-]+'] meta.props.add("ctrctName", prop) prop = PropMeta("str", "dPcTag", "dPcTag", 5856, PropCategory.REGULAR) prop.label = "Destination PC Tag" prop.isConfig = True prop.isAdmin = True prop.isCreateOnly = True prop.isNaming = True prop._addConstant("any", "any", 0) meta.props.add("dPcTag", prop) prop = PropMeta("str", "descr", "descr", 5581, PropCategory.REGULAR) prop.label = "Description" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 128)] prop.regex = ['[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]+'] meta.props.add("descr", prop) prop = PropMeta("str", "direction", "direction", 2154, PropCategory.REGULAR) prop.label = "Direction" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 1 prop.defaultValueStr = "uni-dir" prop._addConstant("bi-dir", "bi-directional", 2) prop._addConstant("uni-dir", "uni-directional", 1) prop._addConstant("uni-dir-ignore", "uni-directional-ignore", 3) meta.props.add("direction", prop) prop = PropMeta("str", "dn", "dn", 1, PropCategory.DN) prop.label = "None" prop.isDn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("dn", prop) prop = PropMeta("str", "fltId", "fltId", 5857, PropCategory.REGULAR) prop.label = "Filter ID" prop.isConfig = True prop.isAdmin = True prop.isCreateOnly = True prop.isNaming = True prop.range = [(1, 4294967295)] prop._addConstant("default", "default-filter-id", 65535) prop._addConstant("implarp", "implicit-filter-id-for-arp", 65533) prop._addConstant("implicit", "implicit-filter-id-for-internal-consumption", 65534) meta.props.add("fltId", prop) prop = PropMeta("str", "id", "id", 2147, PropCategory.REGULAR) prop.label = "ID" prop.isConfig = True prop.isAdmin = True prop.isCreateOnly = True prop.range = [(1, 4294967295)] meta.props.add("id", prop) prop = PropMeta("str", "lcOwn", "lcOwn", 9, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "local" prop._addConstant("implicit", "implicit", 4) prop._addConstant("local", "local", 0) prop._addConstant("policy", "policy", 1) prop._addConstant("replica", "replica", 2) prop._addConstant("resolveOnBehalf", "resolvedonbehalf", 3) meta.props.add("lcOwn", prop) prop = PropMeta("str", "markDscp", "markDscp", 2157, PropCategory.REGULAR) prop.label = "Dscp" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 64)] prop.defaultValue = 64 prop.defaultValueStr = "unspecified" prop._addConstant("AF11", "af11-low-drop", 10) prop._addConstant("AF12", "af12-medium-drop", 12) prop._addConstant("AF13", "af13-high-drop", 14) prop._addConstant("AF21", "af21-low-drop", 18) prop._addConstant("AF22", "af22-medium-drop", 20) prop._addConstant("AF23", "af23-high-drop", 22) prop._addConstant("AF31", "af31-low-drop", 26) prop._addConstant("AF32", "af32-medium-drop", 28) prop._addConstant("AF33", "af33-high-drop", 30) prop._addConstant("AF41", "af41-low-drop", 34) prop._addConstant("AF42", "af42-medium-drop", 36) prop._addConstant("AF43", "af43-high-drop", 38) prop._addConstant("CS0", "cs0", 0) prop._addConstant("CS1", "cs1", 8) prop._addConstant("CS2", "cs2", 16) prop._addConstant("CS3", "cs3", 24) prop._addConstant("CS4", "cs4", 32) prop._addConstant("CS5", "cs5", 40) prop._addConstant("CS6", "cs6", 48) prop._addConstant("CS7", "cs7", 56) prop._addConstant("EF", "expedited-forwarding", 46) prop._addConstant("VA", "voice-admit", 44) prop._addConstant("unspecified", "unspecified", 64) meta.props.add("markDscp", prop) prop = PropMeta("str", "modTs", "modTs", 7, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "never" prop._addConstant("never", "never", 0) meta.props.add("modTs", prop) prop = PropMeta("str", "name", "name", 3682, PropCategory.REGULAR) prop.label = "Name" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 64)] meta.props.add("name", prop) prop = PropMeta("str", "nameAlias", "nameAlias", 28417, PropCategory.REGULAR) prop.label = "Name alias" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 63)] prop.regex = ['[a-zA-Z0-9_.-]+'] meta.props.add("nameAlias", prop) prop = PropMeta("str", "operSt", "operSt", 2158, PropCategory.REGULAR) prop.label = "Operational State" prop.isOper = True prop.defaultValue = 2 prop.defaultValueStr = "disabled" prop._addConstant("disabled", "disabled", 2) prop._addConstant("enabled", "enabled", 1) meta.props.add("operSt", prop) prop = PropMeta("str", "operStQual", "operStQual", 2159, PropCategory.REGULAR) prop.label = "Operational State Qualifier" prop.isOper = True prop._addConstant("hwprog-fail", "hardware-programming-failed", 1) prop._addConstant("hwprog-fail-hash-collision", "hardware-programming-failed-due-to-hash-collision", 8) prop._addConstant("hwprog-fail-tcam-full", "hardware-programming-failed-as-tcam-was-full", 4) prop._addConstant("swprog-fail", "software-programming-failed", 2) meta.props.add("operStQual", prop) prop = PropMeta("str", "prio", "prio", 2149, PropCategory.REGULAR) prop.label = "Priority" prop.isImplicit = True prop.isAdmin = True prop.range = [(1, 23)] prop._addConstant("any_any_any", "any_any_any", 21) prop._addConstant("any_any_filter", "any_any_filter", 17) prop._addConstant("any_dest_any", "any_dest_any", 16) prop._addConstant("any_dest_filter", "any_dest_filter", 14) prop._addConstant("any_vrf_any_deny", "any_vrf_any_deny", 22) prop._addConstant("black_list", "black_list", 5) prop._addConstant("class-eq-allow", "class-eq-allow", 3) prop._addConstant("class-eq-deny", "class-eq-deny", 2) prop._addConstant("class-eq-filter", "class-eq-filter", 1) prop._addConstant("default_action", "default_action", 23) prop._addConstant("fabric_infra", "fabric_infra", 6) prop._addConstant("fully_qual", "fully_qual", 7) prop._addConstant("grp_any_any_any_permit", "grp_any_any_any_permit", 20) prop._addConstant("grp_any_dest_any_deny", "grp_any_dest_any_deny", 19) prop._addConstant("grp_src_any_any_deny", "grp_src_any_any_deny", 18) prop._addConstant("prov-nonshared-to-cons", "prov-nonshared-to-cons", 4) prop._addConstant("shsrc_any_any_deny", "shsrc_any_any_deny", 12) prop._addConstant("shsrc_any_any_perm", "shsrc_any_any_perm", 11) prop._addConstant("shsrc_any_filt_perm", "shsrc_any_filt_perm", 10) prop._addConstant("src_any_any", "src_any_any", 15) prop._addConstant("src_any_filter", "src_any_filter", 13) prop._addConstant("src_dst_any", "src_dst_any", 9) prop._addConstant("system_incomplete", "system_incomplete", 8) meta.props.add("prio", prop) prop = PropMeta("str", "qosGrp", "qosGrp", 2156, PropCategory.REGULAR) prop.label = "QOS Group" prop.isImplicit = True prop.isAdmin = True prop.range = [(0, 10)] prop.defaultValue = 0 prop.defaultValueStr = "unspecified" prop._addConstant("control-plane", "control-plane", 5) prop._addConstant("level1", "level1", 3) prop._addConstant("level2", "level2", 2) prop._addConstant("level3", "level3-(default)", 1) prop._addConstant("level4", "level4", 9) prop._addConstant("level5", "level5", 8) prop._addConstant("level6", "level6", 7) prop._addConstant("policy-plane", "policy-plane", 4) prop._addConstant("span", "span", 6) prop._addConstant("unspecified", "unspecified", 0) meta.props.add("qosGrp", prop) prop = PropMeta("str", "rn", "rn", 2, PropCategory.RN) prop.label = "None" prop.isRn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("rn", prop) prop = PropMeta("str", "sPcTag", "sPcTag", 5858, PropCategory.REGULAR) prop.label = "Source PC Tag" prop.isConfig = True prop.isAdmin = True prop.isCreateOnly = True prop.isNaming = True prop._addConstant("any", "any", 0) meta.props.add("sPcTag", prop) prop = PropMeta("str", "scopeId", "scopeId", 5859, PropCategory.REGULAR) prop.label = "Scope ID" prop.isConfig = True prop.isAdmin = True prop.isCreateOnly = True prop.isNaming = True prop.range = [(1, 16777215)] prop.defaultValue = 1 prop.defaultValueStr = "1" meta.props.add("scopeId", prop) prop = PropMeta("str", "status", "status", 3, PropCategory.STATUS) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("created", "created", 2) prop._addConstant("deleted", "deleted", 8) prop._addConstant("modified", "modified", 4) meta.props.add("status", prop) prop = PropMeta("str", "type", "type", 2148, PropCategory.REGULAR) prop.label = "Type" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 1 prop.defaultValueStr = "tenant" prop._addConstant("bd_flood", "flood", 4) prop._addConstant("infra", "infra", 6) prop._addConstant("mgmt", "management", 2) prop._addConstant("snmp", "snmp", 3) prop._addConstant("tenant", "tenant", 1) prop._addConstant("vrf_default", "vrf", 5) meta.props.add("type", prop) meta.namingProps.append(getattr(meta.props, "scopeId")) meta.namingProps.append(getattr(meta.props, "sPcTag")) meta.namingProps.append(getattr(meta.props, "dPcTag")) meta.namingProps.append(getattr(meta.props, "fltId")) def __init__(self, parentMoOrDn, scopeId, sPcTag, dPcTag, fltId, markDirty=True, **creationProps): namingVals = [scopeId, sPcTag, dPcTag, fltId] Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps)
class Control(Mo): """ Mo doc not defined in techpub!!! """ meta = ClassMeta("cobra.model.cloudsec.Control") meta.moClassName = "cloudsecControl" meta.rnFormat = "cloudseccontrol" meta.category = MoCategory.REGULAR meta.label = "Cloudsec Site Control" meta.writeAccessMask = 0x1000001 meta.readAccessMask = 0x1000001 meta.isDomainable = False meta.isReadOnly = False meta.isConfigurable = True meta.isDeletable = True meta.isContextRoot = False meta.childClasses.add("cobra.model.tag.Tag") meta.childClasses.add("cobra.model.fault.Counts") meta.childClasses.add("cobra.model.health.Inst") meta.childClasses.add("cobra.model.aaa.RbacAnnotation") meta.childClasses.add("cobra.model.tag.AliasDelInst") meta.childClasses.add("cobra.model.tag.ExtMngdInst") meta.childClasses.add("cobra.model.tag.AliasInst") meta.childClasses.add("cobra.model.fault.Delegate") meta.childClasses.add("cobra.model.tag.Inst") meta.childClasses.add("cobra.model.tag.Annotation") meta.childNamesAndRnPrefix.append( ("cobra.model.tag.Annotation", "annotationKey-")) meta.childNamesAndRnPrefix.append( ("cobra.model.tag.AliasDelInst", "aliasdel-")) meta.childNamesAndRnPrefix.append( ("cobra.model.aaa.RbacAnnotation", "rbacDom-")) meta.childNamesAndRnPrefix.append(("cobra.model.tag.Tag", "tagKey-")) meta.childNamesAndRnPrefix.append(("cobra.model.fault.Counts", "fltCnts")) meta.childNamesAndRnPrefix.append( ("cobra.model.tag.ExtMngdInst", "extmngd")) meta.childNamesAndRnPrefix.append(("cobra.model.health.Inst", "health")) meta.childNamesAndRnPrefix.append(("cobra.model.tag.AliasInst", "alias")) meta.childNamesAndRnPrefix.append(("cobra.model.tag.Inst", "tag-")) meta.childNamesAndRnPrefix.append(("cobra.model.fault.Delegate", "fd-")) meta.parentClasses.add("cobra.model.fv.FabricExtConnP") meta.superClasses.add("cobra.model.naming.NamedObject") meta.superClasses.add("cobra.model.pol.Obj") meta.superClasses.add("cobra.model.cloudsec.AControl") meta.superClasses.add("cobra.model.pol.Def") meta.rnPrefixes = [ ('cloudseccontrol', False), ] prop = PropMeta("str", "adminSt", "adminSt", 42728, PropCategory.REGULAR) prop.label = "Administrative State" prop.isConfig = True prop.isAdmin = True prop.defaultValue = 1 prop.defaultValueStr = "enabled" prop._addConstant("disabled", "disabled", 2) prop._addConstant("enabled", "enabled", 1) meta.props.add("adminSt", prop) prop = PropMeta("str", "annotation", "annotation", 42392, PropCategory.REGULAR) prop.label = "Annotation. Suggested format orchestrator:value" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 128)] prop.regex = ['[a-zA-Z0-9_.:-]+'] meta.props.add("annotation", prop) prop = PropMeta("str", "childAction", "childAction", 4, PropCategory.CHILD_ACTION) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("deleteAll", "deleteall", 16384) prop._addConstant("deleteNonPresent", "deletenonpresent", 8192) prop._addConstant("ignore", "ignore", 4096) meta.props.add("childAction", prop) prop = PropMeta("str", "descr", "descr", 5579, PropCategory.REGULAR) prop.label = "Description" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 128)] prop.regex = ['[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]+'] meta.props.add("descr", prop) prop = PropMeta("str", "dn", "dn", 1, PropCategory.DN) prop.label = "None" prop.isDn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("dn", prop) prop = PropMeta("str", "extMngdBy", "extMngdBy", 42393, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "undefined" prop._addConstant("msc", "msc", 1) prop._addConstant("undefined", "undefined", 0) meta.props.add("extMngdBy", prop) prop = PropMeta("str", "keyEncryptionKey", "keyEncryptionKey", 42729, PropCategory.REGULAR) prop.label = "None" prop.isConfig = True prop.isAdmin = True prop.isPassword = True meta.props.add("keyEncryptionKey", prop) prop = PropMeta("str", "lcOwn", "lcOwn", 9, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "local" prop._addConstant("implicit", "implicit", 4) prop._addConstant("local", "local", 0) prop._addConstant("policy", "policy", 1) prop._addConstant("replica", "replica", 2) prop._addConstant("resolveOnBehalf", "resolvedonbehalf", 3) meta.props.add("lcOwn", prop) prop = PropMeta("str", "modTs", "modTs", 7, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "never" prop._addConstant("never", "never", 0) meta.props.add("modTs", prop) prop = PropMeta("str", "monPolDn", "monPolDn", 42385, PropCategory.REGULAR) prop.label = "Monitoring policy attached to this observable object" prop.isImplicit = True prop.isAdmin = True meta.props.add("monPolDn", prop) prop = PropMeta("str", "name", "name", 4991, PropCategory.REGULAR) prop.label = "Name" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 64)] prop.regex = ['[a-zA-Z0-9_.:-]+'] meta.props.add("name", prop) prop = PropMeta("str", "nameAlias", "nameAlias", 28417, PropCategory.REGULAR) prop.label = "Name alias" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 63)] prop.regex = ['[a-zA-Z0-9_.-]+'] meta.props.add("nameAlias", prop) prop = PropMeta("str", "ownerKey", "ownerKey", 15230, PropCategory.REGULAR) prop.label = "None" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 128)] prop.regex = ['[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]+'] meta.props.add("ownerKey", prop) prop = PropMeta("str", "ownerTag", "ownerTag", 15231, PropCategory.REGULAR) prop.label = "None" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 64)] prop.regex = ['[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]+'] meta.props.add("ownerTag", prop) prop = PropMeta("str", "rn", "rn", 2, PropCategory.RN) prop.label = "None" prop.isRn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("rn", prop) prop = PropMeta("str", "status", "status", 3, PropCategory.STATUS) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("created", "created", 2) prop._addConstant("deleted", "deleted", 8) prop._addConstant("modified", "modified", 4) meta.props.add("status", prop) prop = PropMeta("str", "uid", "uid", 8, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True meta.props.add("uid", prop) def __init__(self, parentMoOrDn, markDirty=True, **creationProps): namingVals = [] Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps)
class RsRFltAtt(Mo): """ Mo doc not defined in techpub!!! """ meta = SourceRelationMeta("cobra.model.comp.RsRFltAtt", "cobra.model.comp.RFltP") meta.cardinality = SourceRelationMeta.N_TO_M meta.moClassName = "compRsRFltAtt" meta.rnFormat = "rsRFltAtt-[%(tDn)s]" meta.category = MoCategory.RELATIONSHIP_TO_LOCAL meta.label = "Relation to compRFltP" meta.writeAccessMask = 0x405 meta.readAccessMask = 0x405 meta.isDomainable = False meta.isReadOnly = True meta.isConfigurable = False meta.isDeletable = False meta.isContextRoot = False meta.parentClasses.add("cobra.model.comp.ToEPg") meta.superClasses.add("cobra.model.reln.Inst") meta.superClasses.add("cobra.model.reln.To") meta.rnPrefixes = [ ('rsRFltAtt-', True), ] prop = PropMeta("str", "childAction", "childAction", 4, PropCategory.CHILD_ACTION) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("deleteAll", "deleteall", 16384) prop._addConstant("deleteNonPresent", "deletenonpresent", 8192) prop._addConstant("ignore", "ignore", 4096) meta.props.add("childAction", prop) prop = PropMeta("str", "dn", "dn", 1, PropCategory.DN) prop.label = "None" prop.isDn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("dn", prop) prop = PropMeta("str", "forceResolve", "forceResolve", 107, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = True prop.defaultValueStr = "yes" prop._addConstant("no", None, False) prop._addConstant("yes", None, True) meta.props.add("forceResolve", prop) prop = PropMeta("str", "lcOwn", "lcOwn", 9, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "local" prop._addConstant("implicit", "implicit", 4) prop._addConstant("local", "local", 0) prop._addConstant("policy", "policy", 1) prop._addConstant("replica", "replica", 2) prop._addConstant("resolveOnBehalf", "resolvedonbehalf", 3) meta.props.add("lcOwn", prop) prop = PropMeta("str", "modTs", "modTs", 7, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "never" prop._addConstant("never", "never", 0) meta.props.add("modTs", prop) prop = PropMeta("str", "rType", "rType", 106, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 1 prop.defaultValueStr = "mo" prop._addConstant("local", "local", 3) prop._addConstant("mo", "mo", 1) prop._addConstant("service", "service", 2) meta.props.add("rType", prop) prop = PropMeta("str", "rn", "rn", 2, PropCategory.RN) prop.label = "None" prop.isRn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("rn", prop) prop = PropMeta("str", "state", "state", 103, PropCategory.REGULAR) prop.label = "State" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "unformed" prop._addConstant("cardinality-violation", "cardinality-violation", 5) prop._addConstant("formed", "formed", 1) prop._addConstant("invalid-target", "invalid-target", 4) prop._addConstant("missing-target", "missing-target", 2) prop._addConstant("unformed", "unformed", 0) meta.props.add("state", prop) prop = PropMeta("str", "stateQual", "stateQual", 104, PropCategory.REGULAR) prop.label = "State Qualifier" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "none" prop._addConstant("default-target", "default-target", 2) prop._addConstant("mismatch-target", "mismatch-target", 1) prop._addConstant("none", "none", 0) meta.props.add("stateQual", prop) prop = PropMeta("str", "status", "status", 3, PropCategory.STATUS) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("created", "created", 2) prop._addConstant("deleted", "deleted", 8) prop._addConstant("modified", "modified", 4) meta.props.add("status", prop) prop = PropMeta("str", "tCl", "tCl", 24279, PropCategory.REGULAR) prop.label = "Target-class" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 8214 prop.defaultValueStr = "compRFltP" prop._addConstant("compRFltP", None, 8214) prop._addConstant("unspecified", "unspecified", 0) meta.props.add("tCl", prop) prop = PropMeta("str", "tDn", "tDn", 24278, PropCategory.REGULAR) prop.label = "Target-dn" prop.isConfig = True prop.isAdmin = True prop.isCreateOnly = True prop.isNaming = True meta.props.add("tDn", prop) prop = PropMeta("str", "tType", "tType", 105, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 1 prop.defaultValueStr = "mo" prop._addConstant("all", "all", 2) prop._addConstant("mo", "mo", 1) prop._addConstant("name", "name", 0) meta.props.add("tType", prop) meta.namingProps.append(getattr(meta.props, "tDn")) getattr(meta.props, "tDn").needDelimiter = True def __init__(self, parentMoOrDn, tDn, markDirty=True, **creationProps): namingVals = [tDn] Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps)
class AEpPD(Mo): meta = ClassMeta("cobra.model.comp.AEpPD") meta.isAbstract = True meta.moClassName = "compAEpPD" meta.moClassName = "compAEpPD" meta.rnFormat = "" meta.category = MoCategory.REGULAR meta.label = "None" meta.writeAccessMask = 0x405 meta.readAccessMask = 0x405 meta.isDomainable = False meta.isReadOnly = True meta.isConfigurable = False meta.isDeletable = False meta.isContextRoot = False meta.childClasses.add("cobra.model.comp.RsCtrlrP") meta.childClasses.add("cobra.model.comp.RsLocalEpCP") meta.childNamesAndRnPrefix.append( ("cobra.model.comp.RsLocalEpCP", "rslocalEpCP")) meta.childNamesAndRnPrefix.append( ("cobra.model.comp.RsCtrlrP", "rsctrlrP-")) meta.superClasses.add("cobra.model.naming.NamedObject") meta.superClasses.add("cobra.model.naming.NamedIdentifiedObject") meta.superClasses.add("cobra.model.comp.Entity") meta.concreteSubClasses.add("cobra.model.vmm.UsrAggr") meta.concreteSubClasses.add("cobra.model.comp.EpPD") meta.concreteSubClasses.add("cobra.model.vmm.UsrCustomAggr") meta.concreteSubClasses.add("cobra.model.vmm.IntCustomAggr") meta.concreteSubClasses.add("cobra.model.vmm.IntAggr") meta.concreteSubClasses.add("cobra.model.vmm.EpPD") meta.concreteSubClasses.add("cobra.model.infra.EpPD") meta.concreteSubClasses.add("cobra.model.infra.EpPDDef") meta.rnPrefixes = [] prop = PropMeta("str", "bdDn", "bdDn", 25844, PropCategory.REGULAR) prop.label = "BD DN" prop.isImplicit = True prop.isAdmin = True meta.props.add("bdDn", prop) prop = PropMeta("str", "childAction", "childAction", 4, PropCategory.CHILD_ACTION) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("deleteAll", "deleteall", 16384) prop._addConstant("deleteNonPresent", "deletenonpresent", 8192) prop._addConstant("ignore", "ignore", 4096) meta.props.add("childAction", prop) prop = PropMeta("str", "classPref", "classPref", 23402, PropCategory.REGULAR) prop.label = "Classification Preference" prop.isConfig = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "encap" prop._addConstant("encap", "packet-encapsulation", 0) prop._addConstant("useg", "useg", 1) meta.props.add("classPref", prop) prop = PropMeta("str", "configFlags", "configFlags", 20925, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "none" prop._addConstant( "add-del-task-pending", "whether-an-add-or-delete-extpol-task-is-pending-to-be-executed", 16) prop._addConstant("none", "none", 0) prop._addConstant("skip-encap-validation", "skip-validation-of-encapsulation-value", 1) prop._addConstant("skip-ep-attach", "skip-ep-attach", 2) prop._addConstant("skip-inner-pvlan", "skip-allocation-on-inner-pvlan-for-ave-eppd", 8) prop._addConstant("skip-pg-create", "skip-pg-creation-on-vds", 4) meta.props.add("configFlags", prop) prop = PropMeta("str", "crtrnEnabled", "crtrnEnabled", 18594, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = False prop.defaultValueStr = "no" prop._addConstant("no", None, False) prop._addConstant("yes", None, True) meta.props.add("crtrnEnabled", prop) prop = PropMeta("str", "deployIssues", "deployIssues", 979, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "none" prop._addConstant( "attr-dom-not-supported", "attribute-based-epg-is-not-supported-for-the-domain-type", 131072) prop._addConstant("ctrlr-not-deployable", "controller-not-deployable.", 32768) prop._addConstant("ctrlr-unsupported", "unsupported-controller.", 16384) prop._addConstant("duplicate-static-encap", "duplicate-epg-encapsulation-value", 2097152) prop._addConstant("dvs-config-failed", "failed-to-configure-dvs.", 4096) prop._addConstant("dvs-error", "failed-to-get-dvs-config.", 2) prop._addConstant("dvs-prep-error", "dvs-preparation-error-for-vxlan.", 32) prop._addConstant("dvs-version-error", "could-not-get-dvs-version.", 512) prop._addConstant( "epg-pol-enforce-missing-pri_encap", "missing-primary-encap-in-vmm-domain-relation-for-policy-enforced-epg", 8388608) prop._addConstant( "epg-pol-enforce-redhat-unsupported", "intra-epg-isolation-is-not-supported-for-redhat-domains", 34359738368) prop._addConstant( "epg-pol-enforce-unsupported", "intra-epg-isolation-is-not-supported-in-avs-vlan-mode-and-ave-vlan-mode-vmm-domains", 16777216) prop._addConstant("epg-useg-unsupported", "microsegmentation-is-not-supported-for-the-controller", 67108864) prop._addConstant( "epp-mcast-addr-match-fabric", "epg-mcast-address-is-the-same-as-fabric-mcast-address.-domain-fabric-multicast-address-overlaps-multicast-address-pool.", 1048576) prop._addConstant( "internal-vlan-pool-full", "insufficient-vlans.-internal-vlan-pool-full-for-epgs-in-ave-domain", 8589934592) prop._addConstant( "invalid-encap", "no-valid-encapsulation-identifier-allocated-for-the-epg", 1) prop._addConstant( "invalid-encap-mode", "encap-mode-cannot-be-vxlan-when-switching-mode-is-native-for-this-vmm-domain", 17179869184) prop._addConstant( "invalid-intra-epg-isolation", "enforcing-intra-epg-isolation-is-invalid-without-primary-and-secondary-vlans-set", 274877906944) prop._addConstant("invalid-lag-policy-association", "invalid-enhanced-lag-policy-associated-with-this-epg", 137438953472) prop._addConstant("invalid-mcast-addr", "no-valid-mcast-address-allocated-for-the-epg", 65536) prop._addConstant( "invalid-netflow-preference", "netflow-cannot-be-enabled-for-epg-associated-to-vmm-domain-in-avs-mode", 1073741824) prop._addConstant( "invalid-static-encap", "epg-encapsulation-value-is-not-part-of-any-static-encapsulation-block-for-the-vmm-domain", 524288) prop._addConstant( "invalid-switching-mode", "vmm-domain-needs-to-be-of-type-cisco-ave-for-switching-mode-ave", 4194304) prop._addConstant( "invalid-trunk-portgroup-range", "trunk-portgroup-vlan-ranges-are-out-of-domain-vlan-pool", 134217728) prop._addConstant( "invalid-usegepg-encap", "primary-encap-property-and-encap-property-both-need-to-be-set", 33554432) prop._addConstant("invalid-vip", "vip-has-not-been-allocated", 262144) prop._addConstant( "invalid-vlan-encap", "vlan-encap-mode-is-not-allowed-for-ave-non-local-switching-domain", 68719476736) prop._addConstant( "ipv6-dstaddr-unsupported", "netflow-exporter-dstaddr-supports-ipv6-from-dvs-version-6.0-and-higher.-please-use-an-ipv4-address-for-the-netflow-exporter-dstaddr", 2147483648) prop._addConstant("lacp-apply-failed", "lacp-update-for-portgroup-failed.", 2048) prop._addConstant("missing-internal-vlan-pool", "missing-internal-vlan-pools-for-epgs-in-ave-domain", 4294967296) prop._addConstant("no-ctrlr-dn", "controller-dn-missing.", 256) prop._addConstant("no-ctrlr-map", "controller-missing-from-internal-map.", 128) prop._addConstant("none", "n/a", 0) prop._addConstant("pg-api-error", "portgroup-property-get-api-failed.", 1024) prop._addConstant("policy-not-found", "failed-to-find-policy-container-for-controller.", 8192) prop._addConstant("prep-vxlan-error", "vxlan-cluster-preparation-error.", 8) prop._addConstant("proc-vmm-error", "cluster-type-object-missing-from-controller.", 16) prop._addConstant("resimedcy-unsupported", "resolution-immediacy-not-supported-for-this-domain", 536870912) prop._addConstant("trunk-portgroup-unsupported", "trunk-portgroup-not-supported", 268435456) prop._addConstant("unsupported-ctrlr", "invalid-controller-scope.", 64) prop._addConstant("vdn-error", "network-scope-creation-error.", 4) meta.props.add("deployIssues", prop) prop = PropMeta("str", "descr", "descr", 5587, PropCategory.REGULAR) prop.label = "Description" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 128)] prop.regex = ['[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]+'] meta.props.add("descr", prop) prop = PropMeta("str", "dn", "dn", 1, PropCategory.DN) prop.label = "None" prop.isDn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("dn", prop) prop = PropMeta("str", "encap", "encap", 983, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True meta.props.add("encap", prop) prop = PropMeta("str", "encapAllocKey", "encapAllocKey", 23403, PropCategory.REGULAR) prop.label = "Encapsulation allocation Key" prop.isImplicit = True prop.isAdmin = True meta.props.add("encapAllocKey", prop) prop = PropMeta("str", "encapChanged", "encapChanged", 43443, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = False prop.defaultValueStr = "no" prop._addConstant("no", None, False) prop._addConstant("yes", None, True) meta.props.add("encapChanged", prop) prop = PropMeta("str", "encapCtx", "encapCtx", 18204, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.range = [(0, 512)] meta.props.add("encapCtx", prop) prop = PropMeta("str", "epgPKey", "epgPKey", 980, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True meta.props.add("epgPKey", prop) prop = PropMeta("str", "eppDn", "eppDn", 981, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True meta.props.add("eppDn", prop) prop = PropMeta("str", "faultDKey", "faultDKey", 15775, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True meta.props.add("faultDKey", prop) prop = PropMeta("str", "id", "id", 1003, PropCategory.REGULAR) prop.label = "Id" prop.isImplicit = True prop.isAdmin = True meta.props.add("id", prop) prop = PropMeta("str", "idConsumerDn", "idConsumerDn", 23404, PropCategory.REGULAR) prop.label = "Ident Consumer DN" prop.isConfig = True prop.isAdmin = True meta.props.add("idConsumerDn", prop) prop = PropMeta("str", "instrImedcy", "instrImedcy", 34224, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 2 prop.defaultValueStr = "lazy" prop._addConstant("immediate", "immediate", 1) prop._addConstant("lazy", "on-demand", 2) meta.props.add("instrImedcy", prop) prop = PropMeta("str", "issues", "issues", 34206, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "none" prop._addConstant("ds-update-fault", "failed-to-update-ds(data-store)-property", 4096) prop._addConstant("hpnic-miss-epg-fault", "hpnic-is-attached-to-an-invalid-uplink-dvs-port-group", 32) prop._addConstant("hv-disconnect-fault", "esx-host-is-disconnected-or-not-responding", 128) prop._addConstant("hv-miss-dvs-fault", "esx-host-is-configured-with-invalid-dvs", 64) prop._addConstant("hv-miss-pnic-fault", "esx-host-does-not-have-any-pnic", 1024) prop._addConstant("hv-miss-vmknic-fault", "esx-host-does-not-have-any-vmknic", 256) prop._addConstant("hv-update-fault", "failed-to-update-hv(esx-host)-property", 2) prop._addConstant("lnode-property-fault", "failed-to-get-dvs-property", 1) prop._addConstant("mgmtnic-miss-dvs-fault", "vmk-nic-is-configured-with-invalid-dvs", 512) prop._addConstant("none", "none", 0) prop._addConstant( "opflex-channels-down-ave", "both-the-opflex-channels-are-down-for-ave.-please-check-the-connections-on-the-host.", 16384) prop._addConstant( "prep-iso-file-fault", "failed-to-prepare-or-push-iso-file-for-service-vm-deployment.-please-check-if-correct-datastore-is-selected-in-policy.", 131072) prop._addConstant("rp-update-fault", "failed-to-update-rp(resource-pool)-property", 8192) prop._addConstant("tagging-cat-fault", "failed-to-retrieve-all-tag-category-information", 65536) prop._addConstant("tagging-tag-fault", "failed-to-retrieve-all-tag-information", 32768) prop._addConstant("vm-deploy-task-fault", "deployvm-task-failed-on-vcenter", 2048) prop._addConstant("vm-miss-hv-fault", "vm-is-attached-to-an-invalid-hv(esx-host)", 8) prop._addConstant("vm-update-fault", "failed-to-update-vm(virtual-machine)-property", 4) prop._addConstant("vmfolder-update-fault", "failed-to-update-vm(virtual-machine)-folder-property", 262144) prop._addConstant( "vnic-miss-epg-fault", "vnic-is-attached-to-an-invalid-dvs-port-group-or-unable-to-communicate-with-vcenter", 16) meta.props.add("issues", prop) prop = PropMeta("str", "lagPolicyName", "lagPolicyName", 44358, PropCategory.REGULAR) prop.label = "Enhanced LAG Policy Name" prop.isImplicit = True prop.isAdmin = True prop.range = [(0, 512)] meta.props.add("lagPolicyName", prop) prop = PropMeta("str", "lbAlgo", "lbAlgo", 985, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 2 prop.defaultValueStr = "mac-pin" prop._addConstant("ip-hash", "ip-hash", 1) prop._addConstant("mac-pin", "mac-pin", 2) prop._addConstant("mac-pin-nicload", "mac-pin-nicload", 3) meta.props.add("lbAlgo", prop) prop = PropMeta("str", "mcastAddr", "mcastAddr", 984, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True meta.props.add("mcastAddr", prop) prop = PropMeta("str", "name", "name", 1004, PropCategory.REGULAR) prop.label = "Name" prop.isImplicit = True prop.isAdmin = True prop.range = [(0, 128)] prop.regex = ['[a-zA-Z0-9_.:-]+'] meta.props.add("name", prop) prop = PropMeta("str", "nameAlias", "nameAlias", 28417, PropCategory.REGULAR) prop.label = "Name alias" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 63)] prop.regex = ['[a-zA-Z0-9_.-]+'] meta.props.add("nameAlias", prop) prop = PropMeta("str", "resImedcy", "resImedcy", 982, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 2 prop.defaultValueStr = "lazy" prop._addConstant("immediate", "immediate", 1) prop._addConstant("lazy", "on-demand", 2) prop._addConstant("pre-provision", "pre-provision", 3) meta.props.add("resImedcy", prop) prop = PropMeta("str", "rn", "rn", 2, PropCategory.RN) prop.label = "None" prop.isRn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("rn", prop) prop = PropMeta("str", "status", "status", 3, PropCategory.STATUS) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("created", "created", 2) prop._addConstant("deleted", "deleted", 8) prop._addConstant("modified", "modified", 4) meta.props.add("status", prop) prop = PropMeta("str", "txId", "txId", 26232, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True meta.props.add("txId", prop) prop = PropMeta("str", "updateTs", "updateTs", 18595, PropCategory.REGULAR) prop.label = "Update Timestamp" prop.isOper = True meta.props.add("updateTs", prop) def __init__(self, parentMoOrDn, markDirty=True, **creationProps): namingVals = [] Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps)
class ChangeX509Cert(Mo): """ The schema of the ChangeX509Cert REST method contents. The contents of this method enables users to change their own x509 certificate """ meta = ClassMeta("cobra.model.aaa.ChangeX509Cert") meta.moClassName = "aaaChangeX509Cert" meta.rnFormat = "changex509cert" meta.category = MoCategory.REGULAR meta.label = "Change X509 Cert Method" meta.writeAccessMask = 0x1 meta.readAccessMask = 0x1 meta.isDomainable = False meta.isReadOnly = True meta.isConfigurable = False meta.isDeletable = False meta.isContextRoot = False meta.rnPrefixes = [ ('changex509cert', False), ] prop = PropMeta("str", "childAction", "childAction", 4, PropCategory.CHILD_ACTION) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("deleteAll", "deleteall", 16384) prop._addConstant("deleteNonPresent", "deletenonpresent", 8192) prop._addConstant("ignore", "ignore", 4096) meta.props.add("childAction", prop) prop = PropMeta("str", "data", "data", 1279, PropCategory.REGULAR) prop.label = "X509 Certificate" prop.isConfig = True prop.isAdmin = True meta.props.add("data", prop) prop = PropMeta("str", "dn", "dn", 1, PropCategory.DN) prop.label = "None" prop.isDn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("dn", prop) prop = PropMeta("str", "lcOwn", "lcOwn", 9, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "local" prop._addConstant("implicit", "implicit", 4) prop._addConstant("local", "local", 0) prop._addConstant("policy", "policy", 1) prop._addConstant("replica", "replica", 2) prop._addConstant("resolveOnBehalf", "resolvedonbehalf", 3) meta.props.add("lcOwn", prop) prop = PropMeta("str", "modTs", "modTs", 7, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "never" prop._addConstant("never", "never", 0) meta.props.add("modTs", prop) prop = PropMeta("str", "name", "name", 1278, PropCategory.REGULAR) prop.label = "X509 Certificate Name" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 16)] prop.regex = ['[a-zA-Z0-9_.:-]+'] meta.props.add("name", prop) prop = PropMeta("str", "rn", "rn", 2, PropCategory.RN) prop.label = "None" prop.isRn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("rn", prop) prop = PropMeta("str", "status", "status", 3, PropCategory.STATUS) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("created", "created", 2) prop._addConstant("deleted", "deleted", 8) prop._addConstant("modified", "modified", 4) meta.props.add("status", prop) prop = PropMeta("str", "userName", "userName", 1277, PropCategory.REGULAR) prop.label = "User Name" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 16)] prop.regex = ['[a-zA-Z0-9_.:-]+'] meta.props.add("userName", prop) def __init__(self, parentMoOrDn, markDirty=True, **creationProps): namingVals = [] Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps)
class CtrlrContext(Mo): """ A controller context. This is an internal object used by the system. """ meta = ClassMeta("cobra.model.comp.CtrlrContext") meta.moClassName = "compCtrlrContext" meta.rnFormat = "compCtrlr" meta.category = MoCategory.REGULAR meta.label = "None" meta.writeAccessMask = 0x1 meta.readAccessMask = 0x1 meta.isDomainable = False meta.isReadOnly = True meta.isConfigurable = False meta.isDeletable = False meta.isContextRoot = False meta.parentClasses.add("cobra.model.comp.CtrlrTask") meta.parentClasses.add("cobra.model.comp.CtrlrFsm") meta.superClasses.add("cobra.model.action.MoContext") meta.rnPrefixes = [ ('compCtrlr', False), ] prop = PropMeta("str", "childAction", "childAction", 4, PropCategory.CHILD_ACTION) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("deleteAll", "deleteall", 16384) prop._addConstant("deleteNonPresent", "deletenonpresent", 8192) prop._addConstant("ignore", "ignore", 4096) meta.props.add("childAction", prop) prop = PropMeta("str", "dn", "dn", 1, PropCategory.DN) prop.label = "None" prop.isDn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("dn", prop) prop = PropMeta("str", "domName", "domName", 11182, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.range = [(0, 512)] meta.props.add("domName", prop) prop = PropMeta("str", "hostOrIp", "hostOrIp", 11183, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.range = [(0, 512)] meta.props.add("hostOrIp", prop) prop = PropMeta("str", "key", "key", 11184, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.range = [(0, 512)] meta.props.add("key", prop) prop = PropMeta("str", "lcOwn", "lcOwn", 9, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "local" prop._addConstant("implicit", "implicit", 4) prop._addConstant("local", "local", 0) prop._addConstant("policy", "policy", 1) prop._addConstant("replica", "replica", 2) prop._addConstant("resolveOnBehalf", "resolvedonbehalf", 3) meta.props.add("lcOwn", prop) prop = PropMeta("str", "modTs", "modTs", 7, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "never" prop._addConstant("never", "never", 0) meta.props.add("modTs", prop) prop = PropMeta("str", "name", "name", 11185, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.range = [(0, 16)] prop.regex = ['[a-zA-Z0-9_.:-]+'] meta.props.add("name", prop) prop = PropMeta("str", "rn", "rn", 2, PropCategory.RN) prop.label = "None" prop.isRn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("rn", prop) prop = PropMeta("str", "status", "status", 3, PropCategory.STATUS) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("created", "created", 2) prop._addConstant("deleted", "deleted", 8) prop._addConstant("modified", "modified", 4) meta.props.add("status", prop) def __init__(self, parentMoOrDn, markDirty=True, **creationProps): namingVals = [] Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps)
class Entity(Mo): """ Mo doc not defined in techpub!!! """ meta = ClassMeta("cobra.model.configprofile.Entity") meta.moClassName = "configprofileEntity" meta.rnFormat = "cfgent-%(name)s" meta.category = MoCategory.REGULAR meta.label = "Domain" meta.writeAccessMask = 0x1 meta.readAccessMask = 0x1 meta.isDomainable = False meta.isReadOnly = True meta.isConfigurable = False meta.isDeletable = False meta.isContextRoot = False meta.parentClasses.add("cobra.model.configprofile.Catalog") meta.superClasses.add("cobra.model.nw.Conn") meta.superClasses.add("cobra.model.nw.Item") meta.superClasses.add("cobra.model.nw.CpDom") meta.superClasses.add("cobra.model.nw.GEp") meta.rnPrefixes = [ ('cfgent-', True), ] prop = PropMeta("str", "bd", "bd", 45354, PropCategory.REGULAR) prop.label = "Value" prop.isImplicit = True prop.isAdmin = True prop.range = [(1, 4294967295)] prop.defaultValue = 1 prop.defaultValueStr = "1" meta.props.add("bd", prop) prop = PropMeta("str", "childAction", "childAction", 4, PropCategory.CHILD_ACTION) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("deleteAll", "deleteall", 16384) prop._addConstant("deleteNonPresent", "deletenonpresent", 8192) prop._addConstant("ignore", "ignore", 4096) meta.props.add("childAction", prop) prop = PropMeta("str", "dn", "dn", 1, PropCategory.DN) prop.label = "None" prop.isDn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("dn", prop) prop = PropMeta("str", "epIpv4", "epIpv4", 45358, PropCategory.REGULAR) prop.label = "Value" prop.isImplicit = True prop.isAdmin = True prop.range = [(1, 4294967295)] prop.defaultValue = 1 prop.defaultValueStr = "1" meta.props.add("epIpv4", prop) prop = PropMeta("str", "epIpv6", "epIpv6", 45359, PropCategory.REGULAR) prop.label = "Value" prop.isImplicit = True prop.isAdmin = True prop.range = [(1, 4294967295)] prop.defaultValue = 1 prop.defaultValueStr = "1" meta.props.add("epIpv6", prop) prop = PropMeta("str", "epMac", "epMac", 45357, PropCategory.REGULAR) prop.label = "Value" prop.isImplicit = True prop.isAdmin = True prop.range = [(1, 4294967295)] prop.defaultValue = 1 prop.defaultValueStr = "1" meta.props.add("epMac", prop) prop = PropMeta("str", "epg", "epg", 45355, PropCategory.REGULAR) prop.label = "Value" prop.isImplicit = True prop.isAdmin = True prop.range = [(1, 4294967295)] prop.defaultValue = 1 prop.defaultValueStr = "1" meta.props.add("epg", prop) prop = PropMeta("str", "lpm", "lpm", 45360, PropCategory.REGULAR) prop.label = "Value" prop.isImplicit = True prop.isAdmin = True prop.range = [(1, 4294967295)] prop.defaultValue = 1 prop.defaultValueStr = "1" meta.props.add("lpm", prop) prop = PropMeta("str", "mcast", "mcast", 45361, PropCategory.REGULAR) prop.label = "Value" prop.isImplicit = True prop.isAdmin = True prop.range = [(1, 4294967295)] prop.defaultValue = 1 prop.defaultValueStr = "1" meta.props.add("mcast", prop) prop = PropMeta("str", "modTs", "modTs", 7, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "never" prop._addConstant("never", "never", 0) meta.props.add("modTs", prop) prop = PropMeta("str", "name", "name", 45365, PropCategory.REGULAR) prop.label = "Name" prop.isConfig = True prop.isAdmin = True prop.isCreateOnly = True prop.isNaming = True prop.range = [(1, 128)] meta.props.add("name", prop) prop = PropMeta("str", "policy", "policy", 45362, PropCategory.REGULAR) prop.label = "Value" prop.isImplicit = True prop.isAdmin = True prop.range = [(1, 4294967295)] prop.defaultValue = 1 prop.defaultValueStr = "1" meta.props.add("policy", prop) prop = PropMeta("str", "rn", "rn", 2, PropCategory.RN) prop.label = "None" prop.isRn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("rn", prop) prop = PropMeta("str", "slash128", "slash128", 45364, PropCategory.REGULAR) prop.label = "Value" prop.isImplicit = True prop.isAdmin = True prop.range = [(1, 4294967295)] prop.defaultValue = 1 prop.defaultValueStr = "1" meta.props.add("slash128", prop) prop = PropMeta("str", "slash32", "slash32", 45363, PropCategory.REGULAR) prop.label = "Value" prop.isImplicit = True prop.isAdmin = True prop.range = [(1, 4294967295)] prop.defaultValue = 1 prop.defaultValueStr = "1" meta.props.add("slash32", prop) prop = PropMeta("str", "status", "status", 3, PropCategory.STATUS) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("created", "created", 2) prop._addConstant("deleted", "deleted", 8) prop._addConstant("modified", "modified", 4) meta.props.add("status", prop) prop = PropMeta("str", "vlan", "vlan", 45356, PropCategory.REGULAR) prop.label = "Value" prop.isImplicit = True prop.isAdmin = True prop.range = [(1, 4294967295)] prop.defaultValue = 1 prop.defaultValueStr = "1" meta.props.add("vlan", prop) prop = PropMeta("str", "vrf", "vrf", 45353, PropCategory.REGULAR) prop.label = "Value" prop.isImplicit = True prop.isAdmin = True prop.range = [(1, 4294967295)] prop.defaultValue = 1 prop.defaultValueStr = "1" meta.props.add("vrf", prop) meta.namingProps.append(getattr(meta.props, "name")) def __init__(self, parentMoOrDn, name, markDirty=True, **creationProps): namingVals = [name] Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps)
class DropL2Flow(Mo): """ """ meta = ClassMeta("cobra.model.acllog.DropL2Flow") meta.moClassName = "acllogDropL2Flow" meta.rnFormat = "dropl2flow-spctag-%(srcPcTag)s-dpctag-%(dstPcTag)s-sepgname-%(srcEpgName)s-depgname-%(dstEpgName)s-smac-%(srcMacAddr)s-dmac-%(dstMacAddr)s-sintf-[%(srcIntf)s]-vlan-%(vlan)s" meta.category = MoCategory.REGULAR meta.label = "Flow L2 Drop Record" meta.writeAccessMask = 0x1 meta.readAccessMask = 0x1 meta.isDomainable = False meta.isReadOnly = True meta.isConfigurable = False meta.isDeletable = False meta.isContextRoot = False meta.childClasses.add("cobra.model.acllog.FlowCounterHist1year") meta.childClasses.add("cobra.model.fault.Counts") meta.childClasses.add("cobra.model.acllog.FlowCounterAgHist1year") meta.childClasses.add("cobra.model.acllog.FlowCounterAg1qtr") meta.childClasses.add("cobra.model.fault.Inst") meta.childClasses.add("cobra.model.acllog.FlowCounter1w") meta.childClasses.add("cobra.model.acllog.FlowCounter1h") meta.childClasses.add("cobra.model.acllog.FlowCounter1year") meta.childClasses.add("cobra.model.acllog.FlowCounter1d") meta.childClasses.add("cobra.model.acllog.FlowCounterAgHist1mo") meta.childClasses.add("cobra.model.acllog.FlowCounterAg1year") meta.childClasses.add("cobra.model.acllog.FlowCounterHist1w") meta.childClasses.add("cobra.model.acllog.FlowCounterAg1mo") meta.childClasses.add("cobra.model.acllog.FlowCounterHist15min") meta.childClasses.add("cobra.model.acllog.FlowCounterHist1d") meta.childClasses.add("cobra.model.acllog.FlowCounterHist1h") meta.childClasses.add("cobra.model.acllog.FlowCounterAgHist15min") meta.childClasses.add("cobra.model.acllog.FlowCounterHist5min") meta.childClasses.add("cobra.model.acllog.FlowCounterAg1w") meta.childClasses.add("cobra.model.acllog.FlowCounterAg15min") meta.childClasses.add("cobra.model.acllog.FlowCounterAgHist1qtr") meta.childClasses.add("cobra.model.acllog.FlowCounterAg1h") meta.childClasses.add("cobra.model.acllog.FlowCounterAg1d") meta.childClasses.add("cobra.model.health.Inst") meta.childClasses.add("cobra.model.acllog.FlowCounterAgHist1d") meta.childClasses.add("cobra.model.acllog.FlowCounterHist1qtr") meta.childClasses.add("cobra.model.acllog.FlowCounterHist1mo") meta.childClasses.add("cobra.model.acllog.FlowCounterAgHist1h") meta.childClasses.add("cobra.model.acllog.FlowCounter1qtr") meta.childClasses.add("cobra.model.acllog.FlowCounter5min") meta.childClasses.add("cobra.model.acllog.FlowCounterAgHist1w") meta.childClasses.add("cobra.model.acllog.FlowCounter15min") meta.childClasses.add("cobra.model.acllog.FlowCounter1mo") meta.childNamesAndRnPrefix.append( ("cobra.model.acllog.FlowCounterAgHist1year", "HDacllogFlowCounterAg1year-")) meta.childNamesAndRnPrefix.append( ("cobra.model.acllog.FlowCounterAgHist15min", "HDacllogFlowCounterAg15min-")) meta.childNamesAndRnPrefix.append(("cobra.model.acllog.FlowCounterAg1year", "CDacllogFlowCounterAg1year")) meta.childNamesAndRnPrefix.append(("cobra.model.acllog.FlowCounterAg15min", "CDacllogFlowCounterAg15min")) meta.childNamesAndRnPrefix.append( ("cobra.model.acllog.FlowCounterAgHist1qtr", "HDacllogFlowCounterAg1qtr-")) meta.childNamesAndRnPrefix.append( ("cobra.model.acllog.FlowCounterHist1year", "HDacllogFlowCounter1year-")) meta.childNamesAndRnPrefix.append( ("cobra.model.acllog.FlowCounterAg1qtr", "CDacllogFlowCounterAg1qtr")) meta.childNamesAndRnPrefix.append( ("cobra.model.acllog.FlowCounterAgHist1mo", "HDacllogFlowCounterAg1mo-")) meta.childNamesAndRnPrefix.append( ("cobra.model.acllog.FlowCounterHist15min", "HDacllogFlowCounter15min-")) meta.childNamesAndRnPrefix.append( ("cobra.model.acllog.FlowCounter1year", "CDacllogFlowCounter1year")) meta.childNamesAndRnPrefix.append( ("cobra.model.acllog.FlowCounterAg1mo", "CDacllogFlowCounterAg1mo")) meta.childNamesAndRnPrefix.append( ("cobra.model.acllog.FlowCounterHist5min", "HDacllogFlowCounter5min-")) meta.childNamesAndRnPrefix.append( ("cobra.model.acllog.FlowCounterAgHist1d", "HDacllogFlowCounterAg1d-")) meta.childNamesAndRnPrefix.append( ("cobra.model.acllog.FlowCounterHist1qtr", "HDacllogFlowCounter1qtr-")) meta.childNamesAndRnPrefix.append( ("cobra.model.acllog.FlowCounterAgHist1h", "HDacllogFlowCounterAg1h-")) meta.childNamesAndRnPrefix.append( ("cobra.model.acllog.FlowCounterAgHist1w", "HDacllogFlowCounterAg1w-")) meta.childNamesAndRnPrefix.append( ("cobra.model.acllog.FlowCounter15min", "CDacllogFlowCounter15min")) meta.childNamesAndRnPrefix.append( ("cobra.model.acllog.FlowCounterAg1w", "CDacllogFlowCounterAg1w")) meta.childNamesAndRnPrefix.append( ("cobra.model.acllog.FlowCounterAg1h", "CDacllogFlowCounterAg1h")) meta.childNamesAndRnPrefix.append( ("cobra.model.acllog.FlowCounterAg1d", "CDacllogFlowCounterAg1d")) meta.childNamesAndRnPrefix.append( ("cobra.model.acllog.FlowCounterHist1mo", "HDacllogFlowCounter1mo-")) meta.childNamesAndRnPrefix.append( ("cobra.model.acllog.FlowCounter1qtr", "CDacllogFlowCounter1qtr")) meta.childNamesAndRnPrefix.append( ("cobra.model.acllog.FlowCounter5min", "CDacllogFlowCounter5min")) meta.childNamesAndRnPrefix.append( ("cobra.model.acllog.FlowCounterHist1w", "HDacllogFlowCounter1w-")) meta.childNamesAndRnPrefix.append( ("cobra.model.acllog.FlowCounterHist1d", "HDacllogFlowCounter1d-")) meta.childNamesAndRnPrefix.append( ("cobra.model.acllog.FlowCounterHist1h", "HDacllogFlowCounter1h-")) meta.childNamesAndRnPrefix.append( ("cobra.model.acllog.FlowCounter1mo", "CDacllogFlowCounter1mo")) meta.childNamesAndRnPrefix.append( ("cobra.model.acllog.FlowCounter1w", "CDacllogFlowCounter1w")) meta.childNamesAndRnPrefix.append( ("cobra.model.acllog.FlowCounter1h", "CDacllogFlowCounter1h")) meta.childNamesAndRnPrefix.append( ("cobra.model.acllog.FlowCounter1d", "CDacllogFlowCounter1d")) meta.childNamesAndRnPrefix.append(("cobra.model.fault.Counts", "fltCnts")) meta.childNamesAndRnPrefix.append(("cobra.model.fault.Inst", "fault-")) meta.childNamesAndRnPrefix.append(("cobra.model.health.Inst", "health")) meta.parentClasses.add("cobra.model.acllog.Ctx") meta.superClasses.add("cobra.model.acllog.Record") meta.superClasses.add("cobra.model.acllog.DropL2Record") meta.superClasses.add("cobra.model.acllog.DropRecord") meta.rnPrefixes = [ ('dropl2flow-', False), ('spctag-', True), ('-dpctag-', True), ('-sepgname-', True), ('-depgname-', True), ('-smac-', True), ('-dmac-', True), ('-sintf-', True), ('-vlan-', True), ] prop = PropMeta("str", "childAction", "childAction", 4, PropCategory.CHILD_ACTION) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("deleteAll", "deleteall", 16384) prop._addConstant("deleteNonPresent", "deletenonpresent", 8192) prop._addConstant("ignore", "ignore", 4096) meta.props.add("childAction", prop) prop = PropMeta("str", "dn", "dn", 1, PropCategory.DN) prop.label = "None" prop.isDn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("dn", prop) prop = PropMeta("str", "dstEpgName", "dstEpgName", 37083, PropCategory.REGULAR) prop.label = "Destination EPG>" prop.isConfig = True prop.isAdmin = True prop.isCreateOnly = True prop.isNaming = True prop.regex = ['[a-zA-Z0-9:|._-]+'] meta.props.add("dstEpgName", prop) prop = PropMeta("str", "dstMacAddr", "dstMacAddr", 25048, PropCategory.REGULAR) prop.label = "Destination MAC address" prop.isConfig = True prop.isAdmin = True prop.isCreateOnly = True prop.isNaming = True meta.props.add("dstMacAddr", prop) prop = PropMeta("str", "dstPcTag", "dstPcTag", 37084, PropCategory.REGULAR) prop.label = "Destination PcTag" prop.isConfig = True prop.isAdmin = True prop.isCreateOnly = True prop.isNaming = True prop._addConstant("any", "any", 0) meta.props.add("dstPcTag", prop) prop = PropMeta("str", "lcOwn", "lcOwn", 9, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "local" prop._addConstant("implicit", "implicit", 4) prop._addConstant("local", "local", 0) prop._addConstant("policy", "policy", 1) prop._addConstant("replica", "replica", 2) prop._addConstant("resolveOnBehalf", "resolvedonbehalf", 3) meta.props.add("lcOwn", prop) prop = PropMeta("str", "modTs", "modTs", 7, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "never" prop._addConstant("never", "never", 0) meta.props.add("modTs", prop) prop = PropMeta("str", "monPolDn", "monPolDn", 25154, PropCategory.REGULAR) prop.label = "Monitoring policy attached to this observable object" prop.isImplicit = True prop.isAdmin = True meta.props.add("monPolDn", prop) prop = PropMeta("str", "rn", "rn", 2, PropCategory.RN) prop.label = "None" prop.isRn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("rn", prop) prop = PropMeta("str", "srcEpgName", "srcEpgName", 37085, PropCategory.REGULAR) prop.label = "Srouce EPG" prop.isConfig = True prop.isAdmin = True prop.isCreateOnly = True prop.isNaming = True prop.regex = ['[a-zA-Z0-9:|._-]+'] meta.props.add("srcEpgName", prop) prop = PropMeta("str", "srcIntf", "srcIntf", 25049, PropCategory.REGULAR) prop.label = "Source interface" prop.isConfig = True prop.isAdmin = True prop.isCreateOnly = True prop.isNaming = True prop.range = [(1, 256)] prop.regex = ['[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]+'] meta.props.add("srcIntf", prop) prop = PropMeta("str", "srcMacAddr", "srcMacAddr", 25050, PropCategory.REGULAR) prop.label = "Source MAC address" prop.isConfig = True prop.isAdmin = True prop.isCreateOnly = True prop.isNaming = True meta.props.add("srcMacAddr", prop) prop = PropMeta("str", "srcPcTag", "srcPcTag", 37086, PropCategory.REGULAR) prop.label = "Source PC Tag" prop.isConfig = True prop.isAdmin = True prop.isCreateOnly = True prop.isNaming = True prop._addConstant("any", "any", 0) meta.props.add("srcPcTag", prop) prop = PropMeta("str", "status", "status", 3, PropCategory.STATUS) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("created", "created", 2) prop._addConstant("deleted", "deleted", 8) prop._addConstant("modified", "modified", 4) meta.props.add("status", prop) prop = PropMeta("str", "vlan", "vlan", 25051, PropCategory.REGULAR) prop.label = "VLAN Id" prop.isConfig = True prop.isAdmin = True prop.isCreateOnly = True prop.isNaming = True prop.range = [(0, 4095)] prop.defaultValue = 0 prop.defaultValueStr = "invalid" prop._addConstant("invalid", "invalid", 0) meta.props.add("vlan", prop) meta.namingProps.append(getattr(meta.props, "srcPcTag")) meta.namingProps.append(getattr(meta.props, "dstPcTag")) meta.namingProps.append(getattr(meta.props, "srcEpgName")) meta.namingProps.append(getattr(meta.props, "dstEpgName")) meta.namingProps.append(getattr(meta.props, "srcMacAddr")) meta.namingProps.append(getattr(meta.props, "dstMacAddr")) meta.namingProps.append(getattr(meta.props, "srcIntf")) getattr(meta.props, "srcIntf").needDelimiter = True meta.namingProps.append(getattr(meta.props, "vlan")) def __init__(self, parentMoOrDn, srcPcTag, dstPcTag, srcEpgName, dstEpgName, srcMacAddr, dstMacAddr, srcIntf, vlan, markDirty=True, **creationProps): namingVals = [ srcPcTag, dstPcTag, srcEpgName, dstEpgName, srcMacAddr, dstMacAddr, srcIntf, vlan ] Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps)
class DTEp(Mo): """ Mo doc not defined in techpub!!! """ meta = ClassMeta("cobra.model.bgp.DTEp") meta.moClassName = "bgpDTEp" meta.rnFormat = "dtep-[%(id)s]" meta.category = MoCategory.REGULAR meta.label = "Discovered Tunnel Endpoint" meta.writeAccessMask = 0x8408420042001 meta.readAccessMask = 0x8408420042001 meta.isDomainable = False meta.isReadOnly = True meta.isConfigurable = False meta.isDeletable = False meta.isContextRoot = False meta.parentClasses.add("cobra.model.bgp.Db") meta.superClasses.add("cobra.model.nw.ConnEp") meta.superClasses.add("cobra.model.tunnel.Ep") meta.superClasses.add("cobra.model.nw.Conn") meta.superClasses.add("cobra.model.tunnel.DEp") meta.superClasses.add("cobra.model.nw.Item") meta.superClasses.add("cobra.model.nw.Ep") meta.rnPrefixes = [ ('dtep-', True), ] prop = PropMeta("str", "childAction", "childAction", 4, PropCategory.CHILD_ACTION) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("deleteAll", "deleteall", 16384) prop._addConstant("deleteNonPresent", "deletenonpresent", 8192) prop._addConstant("ignore", "ignore", 4096) meta.props.add("childAction", prop) prop = PropMeta("str", "dn", "dn", 1, PropCategory.DN) prop.label = "None" prop.isDn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("dn", prop) prop = PropMeta("str", "encapt", "encapt", 4116, PropCategory.REGULAR) prop.label = "Encapsulation Type" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 2 prop.defaultValueStr = "ivxlan" prop._addConstant("ivxlan", "ivxlan-encap", 2) prop._addConstant("nvgre", "nv-gre-encap", 3) prop._addConstant("unknown", "unknown", 0) prop._addConstant("vxlan", "vxlan-encap", 1) meta.props.add("encapt", prop) prop = PropMeta("str", "id", "id", 20697, PropCategory.REGULAR) prop.label = "ID" prop.isConfig = True prop.isAdmin = True prop.isCreateOnly = True prop.isNaming = True meta.props.add("id", prop) prop = PropMeta("str", "modTs", "modTs", 7, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "never" prop._addConstant("never", "never", 0) meta.props.add("modTs", prop) prop = PropMeta("str", "name", "name", 16432, PropCategory.REGULAR) prop.label = "Name" prop.isConfig = True prop.isAdmin = True prop.range = [(1, 128)] meta.props.add("name", prop) prop = PropMeta("str", "rn", "rn", 2, PropCategory.RN) prop.label = "None" prop.isRn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("rn", prop) prop = PropMeta("str", "role", "role", 4118, PropCategory.REGULAR) prop.label = "Role" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "unsupported" prop._addConstant("controller", "controller", 1) prop._addConstant("leaf", "leaf", 2) prop._addConstant("protection-chain", "protection-chain", 6) prop._addConstant("spine", "spine", 3) prop._addConstant("unsupported", "unknown", 0) prop._addConstant("vip", "vip", 5) prop._addConstant("vleaf", "vleaf", 4) meta.props.add("role", prop) prop = PropMeta("str", "status", "status", 3, PropCategory.STATUS) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("created", "created", 2) prop._addConstant("deleted", "deleted", 8) prop._addConstant("modified", "modified", 4) meta.props.add("status", prop) prop = PropMeta("str", "type", "type", 4117, PropCategory.REGULAR) prop.label = "Type" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 1 prop.defaultValueStr = "physical" prop._addConstant("dci-mcast-hrep", "remote-site-dci-mcast", 512) prop._addConstant("dci-ucast", "remote-pod-dci-unicast", 256) prop._addConstant("fabric-ext", "fabric-external", 32) prop._addConstant("learn-disabled", "learn-disabled", 1024) prop._addConstant("non-fabric-golf", "non-fabric-golf", 4096) prop._addConstant("non-fabric-untrusted", "non-fabric-untrusted-node", 64) prop._addConstant("physical", "physical-ep", 1) prop._addConstant("proxy-acast-mac", "proxy-anycast-mac-ep", 16) prop._addConstant("proxy-acast-v4", "proxy-anycast-ipv4-ep", 4) prop._addConstant("proxy-acast-v6", "proxy-anycast-ipv6-ep", 8) prop._addConstant("rl-mcast-hrep", "remote-leaf-multicast", 16384) prop._addConstant("rl-ss", "remote-leaf-shared-service", 2048) prop._addConstant("rl-ucast", "remote-leaf-unicast", 8192) prop._addConstant("rl-vpc", "remote-leaf-vpc", 32768) prop._addConstant("underlay-mcast", "underlay-multicast", 128) prop._addConstant("virtual", "virtual-ep", 2) prop._addConstant("vpod-mcast-hrep", "vpod-leaf-multicast", 131072) prop._addConstant("vpod-ucast", "vpod-leaf-unicast", 65536) meta.props.add("type", prop) meta.namingProps.append(getattr(meta.props, "id")) getattr(meta.props, "id").needDelimiter = True def __init__(self, parentMoOrDn, id, markDirty=True, **creationProps): namingVals = [id] Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps)
class RtPvlanEntry(Mo): """ Mo doc not defined in techpub!!! """ meta = TargetRelationMeta("cobra.model.comp.RtPvlanEntry", "cobra.model.hvs.PvlanEntry") meta.moClassName = "compRtPvlanEntry" meta.rnFormat = "rtPvlanEntry" meta.category = MoCategory.RELATIONSHIP_FROM_LOCAL meta.label = "None" meta.writeAccessMask = 0x5 meta.readAccessMask = 0x405 meta.isDomainable = False meta.isReadOnly = True meta.isConfigurable = False meta.isDeletable = False meta.isContextRoot = False meta.parentClasses.add("cobra.model.comp.PvlanEntry") meta.superClasses.add("cobra.model.reln.From") meta.superClasses.add("cobra.model.reln.Inst") meta.rnPrefixes = [ ('rtPvlanEntry', False), ] prop = PropMeta("str", "childAction", "childAction", 4, PropCategory.CHILD_ACTION) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("deleteAll", "deleteall", 16384) prop._addConstant("deleteNonPresent", "deletenonpresent", 8192) prop._addConstant("ignore", "ignore", 4096) meta.props.add("childAction", prop) prop = PropMeta("str", "dn", "dn", 1, PropCategory.DN) prop.label = "None" prop.isDn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("dn", prop) prop = PropMeta("str", "lcOwn", "lcOwn", 9, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "local" prop._addConstant("implicit", "implicit", 4) prop._addConstant("local", "local", 0) prop._addConstant("policy", "policy", 1) prop._addConstant("replica", "replica", 2) prop._addConstant("resolveOnBehalf", "resolvedonbehalf", 3) meta.props.add("lcOwn", prop) prop = PropMeta("str", "modTs", "modTs", 7, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "never" prop._addConstant("never", "never", 0) meta.props.add("modTs", prop) prop = PropMeta("str", "rn", "rn", 2, PropCategory.RN) prop.label = "None" prop.isRn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("rn", prop) prop = PropMeta("str", "status", "status", 3, PropCategory.STATUS) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("created", "created", 2) prop._addConstant("deleted", "deleted", 8) prop._addConstant("modified", "modified", 4) meta.props.add("status", prop) prop = PropMeta("str", "tCl", "tCl", 25162, PropCategory.REGULAR) prop.label = "Target-class" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 7970 prop.defaultValueStr = "hvsPvlanEntry" prop._addConstant("hvsPvlanEntry", None, 7970) prop._addConstant("unspecified", "unspecified", 0) meta.props.add("tCl", prop) prop = PropMeta("str", "tDn", "tDn", 100, PropCategory.REGULAR) prop.label = "Target-dn" prop.isImplicit = True prop.isAdmin = True meta.props.add("tDn", prop) # Deployment Meta meta.deploymentQuery = True meta.deploymentType = "Ancestor" meta.deploymentQueryPaths.append( DeploymentPathMeta("ControllerToVirtualMachines", "Virtual Machines", "cobra.model.comp.Vm")) meta.deploymentQueryPaths.append( DeploymentPathMeta("ControllerToVmmEpPD", "Portgroups", "cobra.model.vmm.EpPD")) def __init__(self, parentMoOrDn, markDirty=True, **creationProps): namingVals = [] Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps)
class WebReqAg(Mo): meta = StatsClassMeta("cobra.model.comm.WebReqAg", "web requests") counter = CounterMeta("requests", CounterCategory.COUNTER, "requests", "total requests") counter._propRefs[PropCategory.IMPLICIT_CUMULATIVE] = "requestsCum" counter._propRefs[PropCategory.IMPLICIT_PERIODIC] = "requestsPer" counter._propRefs[PropCategory.IMPLICIT_SUSPECT] = "requestsSpct" counter._propRefs[PropCategory.IMPLICIT_THRESHOLDED] = "requestsThr" counter._propRefs[PropCategory.IMPLICIT_TREND_BASE] = "requestsTrBase" counter._propRefs[PropCategory.IMPLICIT_TREND] = "requestsTr" counter._propRefs[PropCategory.IMPLICIT_RATE] = "requestsRate" meta._counters.append(counter) meta.isAbstract = True meta.moClassName = "commWebReqAg" meta.moClassName = "commWebReqAg" meta.rnFormat = "" meta.category = MoCategory.STATS_CURRENT meta.label = "current aggregated web requests stats" meta.writeAccessMask = 0x1 meta.readAccessMask = 0x1 meta.isDomainable = False meta.isReadOnly = True meta.isConfigurable = False meta.isDeletable = False meta.isContextRoot = False meta.superClasses.add("cobra.model.stats.Item") meta.superClasses.add("cobra.model.stats.Curr") meta.concreteSubClasses.add("cobra.model.comm.WebReqAg1w") meta.concreteSubClasses.add("cobra.model.comm.WebReqAg15min") meta.concreteSubClasses.add("cobra.model.comm.WebReqAg1qtr") meta.concreteSubClasses.add("cobra.model.comm.WebReqAg1d") meta.concreteSubClasses.add("cobra.model.comm.WebReqAg1year") meta.concreteSubClasses.add("cobra.model.comm.WebReqAg5min") meta.concreteSubClasses.add("cobra.model.comm.WebReqAg1h") meta.concreteSubClasses.add("cobra.model.comm.WebReqAg1mo") meta.rnPrefixes = [ ] prop = PropMeta("str", "childAction", "childAction", 4, PropCategory.CHILD_ACTION) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("deleteAll", "deleteall", 16384) prop._addConstant("deleteNonPresent", "deletenonpresent", 8192) prop._addConstant("ignore", "ignore", 4096) meta.props.add("childAction", prop) prop = PropMeta("str", "cnt", "cnt", 16212, PropCategory.REGULAR) prop.label = "Number of Collections During this Interval" prop.isImplicit = True prop.isAdmin = True meta.props.add("cnt", prop) prop = PropMeta("str", "dn", "dn", 1, PropCategory.DN) prop.label = "None" prop.isDn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("dn", prop) prop = PropMeta("str", "lastCollOffset", "lastCollOffset", 111, PropCategory.REGULAR) prop.label = "Collection Length" prop.isImplicit = True prop.isAdmin = True meta.props.add("lastCollOffset", prop) prop = PropMeta("str", "repIntvEnd", "repIntvEnd", 110, PropCategory.REGULAR) prop.label = "Reporting End Time" prop.isImplicit = True prop.isAdmin = True meta.props.add("repIntvEnd", prop) prop = PropMeta("str", "repIntvStart", "repIntvStart", 109, PropCategory.REGULAR) prop.label = "Reporting Start Time" prop.isImplicit = True prop.isAdmin = True meta.props.add("repIntvStart", prop) prop = PropMeta("str", "requestsCum", "requestsCum", 19742, PropCategory.IMPLICIT_CUMULATIVE) prop.label = "total requests cumulative" prop.isOper = True prop.isStats = True meta.props.add("requestsCum", prop) prop = PropMeta("str", "requestsPer", "requestsPer", 19743, PropCategory.IMPLICIT_PERIODIC) prop.label = "total requests periodic" prop.isOper = True prop.isStats = True meta.props.add("requestsPer", prop) prop = PropMeta("str", "requestsRate", "requestsRate", 19748, PropCategory.IMPLICIT_RATE) prop.label = "total requests rate" prop.isOper = True prop.isStats = True meta.props.add("requestsRate", prop) prop = PropMeta("str", "requestsSpct", "requestsSpct", 19744, PropCategory.IMPLICIT_SUSPECT) prop.label = "total requests suspect count" prop.isOper = True prop.isStats = True meta.props.add("requestsSpct", prop) prop = PropMeta("str", "requestsThr", "requestsThr", 19745, PropCategory.IMPLICIT_THRESHOLDED) prop.label = "total requests thresholded flags" prop.isOper = True prop.isStats = True prop.defaultValue = 0 prop.defaultValueStr = "unspecified" prop._addConstant("avgCrit", "avg-severity-critical", 2199023255552) prop._addConstant("avgHigh", "avg-crossed-high-threshold", 68719476736) prop._addConstant("avgLow", "avg-crossed-low-threshold", 137438953472) prop._addConstant("avgMajor", "avg-severity-major", 1099511627776) prop._addConstant("avgMinor", "avg-severity-minor", 549755813888) prop._addConstant("avgRecovering", "avg-recovering", 34359738368) prop._addConstant("avgWarn", "avg-severity-warning", 274877906944) prop._addConstant("cumulativeCrit", "cumulative-severity-critical", 8192) prop._addConstant("cumulativeHigh", "cumulative-crossed-high-threshold", 256) prop._addConstant("cumulativeLow", "cumulative-crossed-low-threshold", 512) prop._addConstant("cumulativeMajor", "cumulative-severity-major", 4096) prop._addConstant("cumulativeMinor", "cumulative-severity-minor", 2048) prop._addConstant("cumulativeRecovering", "cumulative-recovering", 128) prop._addConstant("cumulativeWarn", "cumulative-severity-warning", 1024) prop._addConstant("lastReadingCrit", "lastreading-severity-critical", 64) prop._addConstant("lastReadingHigh", "lastreading-crossed-high-threshold", 2) prop._addConstant("lastReadingLow", "lastreading-crossed-low-threshold", 4) prop._addConstant("lastReadingMajor", "lastreading-severity-major", 32) prop._addConstant("lastReadingMinor", "lastreading-severity-minor", 16) prop._addConstant("lastReadingRecovering", "lastreading-recovering", 1) prop._addConstant("lastReadingWarn", "lastreading-severity-warning", 8) prop._addConstant("maxCrit", "max-severity-critical", 17179869184) prop._addConstant("maxHigh", "max-crossed-high-threshold", 536870912) prop._addConstant("maxLow", "max-crossed-low-threshold", 1073741824) prop._addConstant("maxMajor", "max-severity-major", 8589934592) prop._addConstant("maxMinor", "max-severity-minor", 4294967296) prop._addConstant("maxRecovering", "max-recovering", 268435456) prop._addConstant("maxWarn", "max-severity-warning", 2147483648) prop._addConstant("minCrit", "min-severity-critical", 134217728) prop._addConstant("minHigh", "min-crossed-high-threshold", 4194304) prop._addConstant("minLow", "min-crossed-low-threshold", 8388608) prop._addConstant("minMajor", "min-severity-major", 67108864) prop._addConstant("minMinor", "min-severity-minor", 33554432) prop._addConstant("minRecovering", "min-recovering", 2097152) prop._addConstant("minWarn", "min-severity-warning", 16777216) prop._addConstant("periodicCrit", "periodic-severity-critical", 1048576) prop._addConstant("periodicHigh", "periodic-crossed-high-threshold", 32768) prop._addConstant("periodicLow", "periodic-crossed-low-threshold", 65536) prop._addConstant("periodicMajor", "periodic-severity-major", 524288) prop._addConstant("periodicMinor", "periodic-severity-minor", 262144) prop._addConstant("periodicRecovering", "periodic-recovering", 16384) prop._addConstant("periodicWarn", "periodic-severity-warning", 131072) prop._addConstant("rateCrit", "rate-severity-critical", 36028797018963968) prop._addConstant("rateHigh", "rate-crossed-high-threshold", 1125899906842624) prop._addConstant("rateLow", "rate-crossed-low-threshold", 2251799813685248) prop._addConstant("rateMajor", "rate-severity-major", 18014398509481984) prop._addConstant("rateMinor", "rate-severity-minor", 9007199254740992) prop._addConstant("rateRecovering", "rate-recovering", 562949953421312) prop._addConstant("rateWarn", "rate-severity-warning", 4503599627370496) prop._addConstant("trendCrit", "trend-severity-critical", 281474976710656) prop._addConstant("trendHigh", "trend-crossed-high-threshold", 8796093022208) prop._addConstant("trendLow", "trend-crossed-low-threshold", 17592186044416) prop._addConstant("trendMajor", "trend-severity-major", 140737488355328) prop._addConstant("trendMinor", "trend-severity-minor", 70368744177664) prop._addConstant("trendRecovering", "trend-recovering", 4398046511104) prop._addConstant("trendWarn", "trend-severity-warning", 35184372088832) prop._addConstant("unspecified", None, 0) meta.props.add("requestsThr", prop) prop = PropMeta("str", "requestsTr", "requestsTr", 19747, PropCategory.IMPLICIT_TREND) prop.label = "total requests trend" prop.isOper = True prop.isStats = True meta.props.add("requestsTr", prop) prop = PropMeta("str", "requestsTrBase", "requestsTrBase", 19746, PropCategory.IMPLICIT_TREND_BASE) prop.label = "total requests trend baseline" prop.isOper = True prop.isStats = True meta.props.add("requestsTrBase", prop) prop = PropMeta("str", "rn", "rn", 2, PropCategory.RN) prop.label = "None" prop.isRn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("rn", prop) prop = PropMeta("str", "status", "status", 3, PropCategory.STATUS) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("created", "created", 2) prop._addConstant("deleted", "deleted", 8) prop._addConstant("modified", "modified", 4) meta.props.add("status", prop) def __init__(self, parentMoOrDn, markDirty=True, **creationProps): namingVals = [] Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps)
class ExportRecv(Mo): """ Mo doc not defined in techpub!!! """ meta = ClassMeta("cobra.model.config.ExportRecv") meta.moClassName = "configExportRecv" meta.rnFormat = "exportrecv" meta.category = MoCategory.REGULAR meta.label = "None" meta.writeAccessMask = 0x1 meta.readAccessMask = 0x1 meta.isDomainable = False meta.isReadOnly = True meta.isConfigurable = False meta.isDeletable = False meta.isContextRoot = False meta.parentClasses.add("cobra.model.top.Root") meta.rnPrefixes = [ ('exportrecv', False), ] prop = PropMeta("str", "childAction", "childAction", 4, PropCategory.CHILD_ACTION) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("deleteAll", "deleteall", 16384) prop._addConstant("deleteNonPresent", "deletenonpresent", 8192) prop._addConstant("ignore", "ignore", 4096) meta.props.add("childAction", prop) prop = PropMeta("str", "dn", "dn", 1, PropCategory.DN) prop.label = "None" prop.isDn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("dn", prop) prop = PropMeta("str", "lcOwn", "lcOwn", 9, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "local" prop._addConstant("implicit", "implicit", 4) prop._addConstant("local", "local", 0) prop._addConstant("policy", "policy", 1) prop._addConstant("replica", "replica", 2) prop._addConstant("resolveOnBehalf", "resolvedonbehalf", 3) meta.props.add("lcOwn", prop) prop = PropMeta("str", "modTs", "modTs", 7, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "never" prop._addConstant("never", "never", 0) meta.props.add("modTs", prop) prop = PropMeta("str", "rn", "rn", 2, PropCategory.RN) prop.label = "None" prop.isRn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("rn", prop) prop = PropMeta("str", "status", "status", 3, PropCategory.STATUS) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("created", "created", 2) prop._addConstant("deleted", "deleted", 8) prop._addConstant("modified", "modified", 4) meta.props.add("status", prop) def __init__(self, parentMoOrDn, markDirty=True, **creationProps): namingVals = [] Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps)
class BgpAllow1year(Mo): """ Mo doc not defined in techpub!!! """ meta = StatsClassMeta("cobra.model.copp.BgpAllow1year", "Per Interface Allow Counters for Bgp") counter = CounterMeta("bytesRate", CounterCategory.GAUGE, "bytes-per-second", "BgpAllowed Bytes rate") counter._propRefs[PropCategory.IMPLICIT_LASTREADING] = "bytesRateLast" counter._propRefs[PropCategory.IMPLICIT_MIN] = "bytesRateMin" counter._propRefs[PropCategory.IMPLICIT_MAX] = "bytesRateMax" counter._propRefs[PropCategory.IMPLICIT_AVG] = "bytesRateAvg" counter._propRefs[PropCategory.IMPLICIT_SUSPECT] = "bytesRateSpct" counter._propRefs[PropCategory.IMPLICIT_TOTAL] = "bytesRateTtl" counter._propRefs[PropCategory.IMPLICIT_THRESHOLDED] = "bytesRateThr" counter._propRefs[PropCategory.IMPLICIT_TREND_BASE] = "bytesRateTrBase" counter._propRefs[PropCategory.IMPLICIT_TREND] = "bytesRateTr" meta._counters.append(counter) counter = CounterMeta("bytes", CounterCategory.COUNTER, "bytes", "BgpAllowed Bytes") counter._propRefs[PropCategory.IMPLICIT_LASTREADING] = "bytesLast" counter._propRefs[PropCategory.IMPLICIT_CUMULATIVE] = "bytesCum" counter._propRefs[PropCategory.IMPLICIT_PERIODIC] = "bytesPer" counter._propRefs[PropCategory.IMPLICIT_MIN] = "bytesMin" counter._propRefs[PropCategory.IMPLICIT_MAX] = "bytesMax" counter._propRefs[PropCategory.IMPLICIT_AVG] = "bytesAvg" counter._propRefs[PropCategory.IMPLICIT_SUSPECT] = "bytesSpct" counter._propRefs[PropCategory.IMPLICIT_BASELINE] = "bytesBase" counter._propRefs[PropCategory.IMPLICIT_THRESHOLDED] = "bytesThr" counter._propRefs[PropCategory.IMPLICIT_TREND_BASE] = "bytesTrBase" counter._propRefs[PropCategory.IMPLICIT_TREND] = "bytesTr" counter._propRefs[PropCategory.IMPLICIT_RATE] = "bytesRate" meta._counters.append(counter) counter = CounterMeta("pktsRate", CounterCategory.GAUGE, "packets-per-second", "BgpAllowed Packets rate") counter._propRefs[PropCategory.IMPLICIT_LASTREADING] = "pktsRateLast" counter._propRefs[PropCategory.IMPLICIT_MIN] = "pktsRateMin" counter._propRefs[PropCategory.IMPLICIT_MAX] = "pktsRateMax" counter._propRefs[PropCategory.IMPLICIT_AVG] = "pktsRateAvg" counter._propRefs[PropCategory.IMPLICIT_SUSPECT] = "pktsRateSpct" counter._propRefs[PropCategory.IMPLICIT_TOTAL] = "pktsRateTtl" counter._propRefs[PropCategory.IMPLICIT_THRESHOLDED] = "pktsRateThr" counter._propRefs[PropCategory.IMPLICIT_TREND_BASE] = "pktsRateTrBase" counter._propRefs[PropCategory.IMPLICIT_TREND] = "pktsRateTr" meta._counters.append(counter) counter = CounterMeta("pkts", CounterCategory.COUNTER, "packets", "BgpAllowed Packets") counter._propRefs[PropCategory.IMPLICIT_LASTREADING] = "pktsLast" counter._propRefs[PropCategory.IMPLICIT_CUMULATIVE] = "pktsCum" counter._propRefs[PropCategory.IMPLICIT_PERIODIC] = "pktsPer" counter._propRefs[PropCategory.IMPLICIT_MIN] = "pktsMin" counter._propRefs[PropCategory.IMPLICIT_MAX] = "pktsMax" counter._propRefs[PropCategory.IMPLICIT_AVG] = "pktsAvg" counter._propRefs[PropCategory.IMPLICIT_SUSPECT] = "pktsSpct" counter._propRefs[PropCategory.IMPLICIT_BASELINE] = "pktsBase" counter._propRefs[PropCategory.IMPLICIT_THRESHOLDED] = "pktsThr" counter._propRefs[PropCategory.IMPLICIT_TREND_BASE] = "pktsTrBase" counter._propRefs[PropCategory.IMPLICIT_TREND] = "pktsTr" counter._propRefs[PropCategory.IMPLICIT_RATE] = "pktsRate" meta._counters.append(counter) meta.moClassName = "coppBgpAllow1year" meta.rnFormat = "CDcoppBgpAllow1year" meta.category = MoCategory.STATS_CURRENT meta.label = "current Per Interface Allow Counters for Bgp stats in 1 year" meta.writeAccessMask = 0x1 meta.readAccessMask = 0x1 meta.isDomainable = False meta.isReadOnly = True meta.isConfigurable = False meta.isDeletable = False meta.isContextRoot = True meta.parentClasses.add("cobra.model.svi.If") meta.parentClasses.add("cobra.model.pc.AggrIf") meta.parentClasses.add("cobra.model.l1.PhysIf") meta.parentClasses.add("cobra.model.l3.RtdIf") meta.parentClasses.add("cobra.model.l3.EncRtdIf") meta.superClasses.add("cobra.model.stats.Curr") meta.superClasses.add("cobra.model.copp.BgpAllow") meta.superClasses.add("cobra.model.stats.Item") meta.rnPrefixes = [ ('CDcoppBgpAllow1year', False), ] prop = PropMeta("str", "bytesAvg", "bytesAvg", 31554, PropCategory.IMPLICIT_AVG) prop.label = "BgpAllowed Bytes average value" prop.isOper = True prop.isStats = True meta.props.add("bytesAvg", prop) prop = PropMeta("str", "bytesBase", "bytesBase", 31549, PropCategory.IMPLICIT_BASELINE) prop.label = "BgpAllowed Bytes baseline" prop.isOper = True prop.isStats = True meta.props.add("bytesBase", prop) prop = PropMeta("str", "bytesCum", "bytesCum", 31550, PropCategory.IMPLICIT_CUMULATIVE) prop.label = "BgpAllowed Bytes cumulative" prop.isOper = True prop.isStats = True meta.props.add("bytesCum", prop) prop = PropMeta("str", "bytesLast", "bytesLast", 31548, PropCategory.IMPLICIT_LASTREADING) prop.label = "BgpAllowed Bytes current value" prop.isOper = True prop.isStats = True meta.props.add("bytesLast", prop) prop = PropMeta("str", "bytesMax", "bytesMax", 31553, PropCategory.IMPLICIT_MAX) prop.label = "BgpAllowed Bytes maximum value" prop.isOper = True prop.isStats = True meta.props.add("bytesMax", prop) prop = PropMeta("str", "bytesMin", "bytesMin", 31552, PropCategory.IMPLICIT_MIN) prop.label = "BgpAllowed Bytes minimum value" prop.isOper = True prop.isStats = True meta.props.add("bytesMin", prop) prop = PropMeta("str", "bytesPer", "bytesPer", 31551, PropCategory.IMPLICIT_PERIODIC) prop.label = "BgpAllowed Bytes periodic" prop.isOper = True prop.isStats = True meta.props.add("bytesPer", prop) prop = PropMeta("str", "bytesRate", "bytesRate", 31559, PropCategory.IMPLICIT_RATE) prop.label = "BgpAllowed Bytes rate" prop.isOper = True prop.isStats = True meta.props.add("bytesRate", prop) prop = PropMeta("str", "bytesRateAvg", "bytesRateAvg", 31572, PropCategory.IMPLICIT_AVG) prop.label = "BgpAllowed Bytes rate average value" prop.isOper = True prop.isStats = True meta.props.add("bytesRateAvg", prop) prop = PropMeta("str", "bytesRateLast", "bytesRateLast", 31569, PropCategory.IMPLICIT_LASTREADING) prop.label = "BgpAllowed Bytes rate current value" prop.isOper = True prop.isStats = True meta.props.add("bytesRateLast", prop) prop = PropMeta("str", "bytesRateMax", "bytesRateMax", 31571, PropCategory.IMPLICIT_MAX) prop.label = "BgpAllowed Bytes rate maximum value" prop.isOper = True prop.isStats = True meta.props.add("bytesRateMax", prop) prop = PropMeta("str", "bytesRateMin", "bytesRateMin", 31570, PropCategory.IMPLICIT_MIN) prop.label = "BgpAllowed Bytes rate minimum value" prop.isOper = True prop.isStats = True meta.props.add("bytesRateMin", prop) prop = PropMeta("str", "bytesRateSpct", "bytesRateSpct", 31573, PropCategory.IMPLICIT_SUSPECT) prop.label = "BgpAllowed Bytes rate suspect count" prop.isOper = True prop.isStats = True meta.props.add("bytesRateSpct", prop) prop = PropMeta("str", "bytesRateThr", "bytesRateThr", 31575, PropCategory.IMPLICIT_THRESHOLDED) prop.label = "BgpAllowed Bytes rate thresholded flags" prop.isOper = True prop.isStats = True prop.defaultValue = 0 prop.defaultValueStr = "unspecified" prop._addConstant("avgCrit", "avg-severity-critical", 2199023255552) prop._addConstant("avgHigh", "avg-crossed-high-threshold", 68719476736) prop._addConstant("avgLow", "avg-crossed-low-threshold", 137438953472) prop._addConstant("avgMajor", "avg-severity-major", 1099511627776) prop._addConstant("avgMinor", "avg-severity-minor", 549755813888) prop._addConstant("avgRecovering", "avg-recovering", 34359738368) prop._addConstant("avgWarn", "avg-severity-warning", 274877906944) prop._addConstant("cumulativeCrit", "cumulative-severity-critical", 8192) prop._addConstant("cumulativeHigh", "cumulative-crossed-high-threshold", 256) prop._addConstant("cumulativeLow", "cumulative-crossed-low-threshold", 512) prop._addConstant("cumulativeMajor", "cumulative-severity-major", 4096) prop._addConstant("cumulativeMinor", "cumulative-severity-minor", 2048) prop._addConstant("cumulativeRecovering", "cumulative-recovering", 128) prop._addConstant("cumulativeWarn", "cumulative-severity-warning", 1024) prop._addConstant("lastReadingCrit", "lastreading-severity-critical", 64) prop._addConstant("lastReadingHigh", "lastreading-crossed-high-threshold", 2) prop._addConstant("lastReadingLow", "lastreading-crossed-low-threshold", 4) prop._addConstant("lastReadingMajor", "lastreading-severity-major", 32) prop._addConstant("lastReadingMinor", "lastreading-severity-minor", 16) prop._addConstant("lastReadingRecovering", "lastreading-recovering", 1) prop._addConstant("lastReadingWarn", "lastreading-severity-warning", 8) prop._addConstant("maxCrit", "max-severity-critical", 17179869184) prop._addConstant("maxHigh", "max-crossed-high-threshold", 536870912) prop._addConstant("maxLow", "max-crossed-low-threshold", 1073741824) prop._addConstant("maxMajor", "max-severity-major", 8589934592) prop._addConstant("maxMinor", "max-severity-minor", 4294967296) prop._addConstant("maxRecovering", "max-recovering", 268435456) prop._addConstant("maxWarn", "max-severity-warning", 2147483648) prop._addConstant("minCrit", "min-severity-critical", 134217728) prop._addConstant("minHigh", "min-crossed-high-threshold", 4194304) prop._addConstant("minLow", "min-crossed-low-threshold", 8388608) prop._addConstant("minMajor", "min-severity-major", 67108864) prop._addConstant("minMinor", "min-severity-minor", 33554432) prop._addConstant("minRecovering", "min-recovering", 2097152) prop._addConstant("minWarn", "min-severity-warning", 16777216) prop._addConstant("periodicCrit", "periodic-severity-critical", 1048576) prop._addConstant("periodicHigh", "periodic-crossed-high-threshold", 32768) prop._addConstant("periodicLow", "periodic-crossed-low-threshold", 65536) prop._addConstant("periodicMajor", "periodic-severity-major", 524288) prop._addConstant("periodicMinor", "periodic-severity-minor", 262144) prop._addConstant("periodicRecovering", "periodic-recovering", 16384) prop._addConstant("periodicWarn", "periodic-severity-warning", 131072) prop._addConstant("rateCrit", "rate-severity-critical", 36028797018963968) prop._addConstant("rateHigh", "rate-crossed-high-threshold", 1125899906842624) prop._addConstant("rateLow", "rate-crossed-low-threshold", 2251799813685248) prop._addConstant("rateMajor", "rate-severity-major", 18014398509481984) prop._addConstant("rateMinor", "rate-severity-minor", 9007199254740992) prop._addConstant("rateRecovering", "rate-recovering", 562949953421312) prop._addConstant("rateWarn", "rate-severity-warning", 4503599627370496) prop._addConstant("trendCrit", "trend-severity-critical", 281474976710656) prop._addConstant("trendHigh", "trend-crossed-high-threshold", 8796093022208) prop._addConstant("trendLow", "trend-crossed-low-threshold", 17592186044416) prop._addConstant("trendMajor", "trend-severity-major", 140737488355328) prop._addConstant("trendMinor", "trend-severity-minor", 70368744177664) prop._addConstant("trendRecovering", "trend-recovering", 4398046511104) prop._addConstant("trendWarn", "trend-severity-warning", 35184372088832) prop._addConstant("unspecified", None, 0) meta.props.add("bytesRateThr", prop) prop = PropMeta("str", "bytesRateTr", "bytesRateTr", 31577, PropCategory.IMPLICIT_TREND) prop.label = "BgpAllowed Bytes rate trend" prop.isOper = True prop.isStats = True meta.props.add("bytesRateTr", prop) prop = PropMeta("str", "bytesRateTrBase", "bytesRateTrBase", 31576, PropCategory.IMPLICIT_TREND_BASE) prop.label = "BgpAllowed Bytes rate trend baseline" prop.isOper = True prop.isStats = True meta.props.add("bytesRateTrBase", prop) prop = PropMeta("str", "bytesRateTtl", "bytesRateTtl", 31574, PropCategory.IMPLICIT_TOTAL) prop.label = "BgpAllowed Bytes rate total sum" prop.isOper = True prop.isStats = True meta.props.add("bytesRateTtl", prop) prop = PropMeta("str", "bytesSpct", "bytesSpct", 31555, PropCategory.IMPLICIT_SUSPECT) prop.label = "BgpAllowed Bytes suspect count" prop.isOper = True prop.isStats = True meta.props.add("bytesSpct", prop) prop = PropMeta("str", "bytesThr", "bytesThr", 31556, PropCategory.IMPLICIT_THRESHOLDED) prop.label = "BgpAllowed Bytes thresholded flags" prop.isOper = True prop.isStats = True prop.defaultValue = 0 prop.defaultValueStr = "unspecified" prop._addConstant("avgCrit", "avg-severity-critical", 2199023255552) prop._addConstant("avgHigh", "avg-crossed-high-threshold", 68719476736) prop._addConstant("avgLow", "avg-crossed-low-threshold", 137438953472) prop._addConstant("avgMajor", "avg-severity-major", 1099511627776) prop._addConstant("avgMinor", "avg-severity-minor", 549755813888) prop._addConstant("avgRecovering", "avg-recovering", 34359738368) prop._addConstant("avgWarn", "avg-severity-warning", 274877906944) prop._addConstant("cumulativeCrit", "cumulative-severity-critical", 8192) prop._addConstant("cumulativeHigh", "cumulative-crossed-high-threshold", 256) prop._addConstant("cumulativeLow", "cumulative-crossed-low-threshold", 512) prop._addConstant("cumulativeMajor", "cumulative-severity-major", 4096) prop._addConstant("cumulativeMinor", "cumulative-severity-minor", 2048) prop._addConstant("cumulativeRecovering", "cumulative-recovering", 128) prop._addConstant("cumulativeWarn", "cumulative-severity-warning", 1024) prop._addConstant("lastReadingCrit", "lastreading-severity-critical", 64) prop._addConstant("lastReadingHigh", "lastreading-crossed-high-threshold", 2) prop._addConstant("lastReadingLow", "lastreading-crossed-low-threshold", 4) prop._addConstant("lastReadingMajor", "lastreading-severity-major", 32) prop._addConstant("lastReadingMinor", "lastreading-severity-minor", 16) prop._addConstant("lastReadingRecovering", "lastreading-recovering", 1) prop._addConstant("lastReadingWarn", "lastreading-severity-warning", 8) prop._addConstant("maxCrit", "max-severity-critical", 17179869184) prop._addConstant("maxHigh", "max-crossed-high-threshold", 536870912) prop._addConstant("maxLow", "max-crossed-low-threshold", 1073741824) prop._addConstant("maxMajor", "max-severity-major", 8589934592) prop._addConstant("maxMinor", "max-severity-minor", 4294967296) prop._addConstant("maxRecovering", "max-recovering", 268435456) prop._addConstant("maxWarn", "max-severity-warning", 2147483648) prop._addConstant("minCrit", "min-severity-critical", 134217728) prop._addConstant("minHigh", "min-crossed-high-threshold", 4194304) prop._addConstant("minLow", "min-crossed-low-threshold", 8388608) prop._addConstant("minMajor", "min-severity-major", 67108864) prop._addConstant("minMinor", "min-severity-minor", 33554432) prop._addConstant("minRecovering", "min-recovering", 2097152) prop._addConstant("minWarn", "min-severity-warning", 16777216) prop._addConstant("periodicCrit", "periodic-severity-critical", 1048576) prop._addConstant("periodicHigh", "periodic-crossed-high-threshold", 32768) prop._addConstant("periodicLow", "periodic-crossed-low-threshold", 65536) prop._addConstant("periodicMajor", "periodic-severity-major", 524288) prop._addConstant("periodicMinor", "periodic-severity-minor", 262144) prop._addConstant("periodicRecovering", "periodic-recovering", 16384) prop._addConstant("periodicWarn", "periodic-severity-warning", 131072) prop._addConstant("rateCrit", "rate-severity-critical", 36028797018963968) prop._addConstant("rateHigh", "rate-crossed-high-threshold", 1125899906842624) prop._addConstant("rateLow", "rate-crossed-low-threshold", 2251799813685248) prop._addConstant("rateMajor", "rate-severity-major", 18014398509481984) prop._addConstant("rateMinor", "rate-severity-minor", 9007199254740992) prop._addConstant("rateRecovering", "rate-recovering", 562949953421312) prop._addConstant("rateWarn", "rate-severity-warning", 4503599627370496) prop._addConstant("trendCrit", "trend-severity-critical", 281474976710656) prop._addConstant("trendHigh", "trend-crossed-high-threshold", 8796093022208) prop._addConstant("trendLow", "trend-crossed-low-threshold", 17592186044416) prop._addConstant("trendMajor", "trend-severity-major", 140737488355328) prop._addConstant("trendMinor", "trend-severity-minor", 70368744177664) prop._addConstant("trendRecovering", "trend-recovering", 4398046511104) prop._addConstant("trendWarn", "trend-severity-warning", 35184372088832) prop._addConstant("unspecified", None, 0) meta.props.add("bytesThr", prop) prop = PropMeta("str", "bytesTr", "bytesTr", 31558, PropCategory.IMPLICIT_TREND) prop.label = "BgpAllowed Bytes trend" prop.isOper = True prop.isStats = True meta.props.add("bytesTr", prop) prop = PropMeta("str", "bytesTrBase", "bytesTrBase", 31557, PropCategory.IMPLICIT_TREND_BASE) prop.label = "BgpAllowed Bytes trend baseline" prop.isOper = True prop.isStats = True meta.props.add("bytesTrBase", prop) prop = PropMeta("str", "childAction", "childAction", 4, PropCategory.CHILD_ACTION) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("deleteAll", "deleteall", 16384) prop._addConstant("deleteNonPresent", "deletenonpresent", 8192) prop._addConstant("ignore", "ignore", 4096) meta.props.add("childAction", prop) prop = PropMeta("str", "cnt", "cnt", 16212, PropCategory.REGULAR) prop.label = "Number of Collections During this Interval" prop.isImplicit = True prop.isAdmin = True meta.props.add("cnt", prop) prop = PropMeta("str", "dn", "dn", 1, PropCategory.DN) prop.label = "None" prop.isDn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("dn", prop) prop = PropMeta("str", "lastCollOffset", "lastCollOffset", 111, PropCategory.REGULAR) prop.label = "Collection Length" prop.isImplicit = True prop.isAdmin = True meta.props.add("lastCollOffset", prop) prop = PropMeta("str", "modTs", "modTs", 7, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "never" prop._addConstant("never", "never", 0) meta.props.add("modTs", prop) prop = PropMeta("str", "pktsAvg", "pktsAvg", 31590, PropCategory.IMPLICIT_AVG) prop.label = "BgpAllowed Packets average value" prop.isOper = True prop.isStats = True meta.props.add("pktsAvg", prop) prop = PropMeta("str", "pktsBase", "pktsBase", 31585, PropCategory.IMPLICIT_BASELINE) prop.label = "BgpAllowed Packets baseline" prop.isOper = True prop.isStats = True meta.props.add("pktsBase", prop) prop = PropMeta("str", "pktsCum", "pktsCum", 31586, PropCategory.IMPLICIT_CUMULATIVE) prop.label = "BgpAllowed Packets cumulative" prop.isOper = True prop.isStats = True meta.props.add("pktsCum", prop) prop = PropMeta("str", "pktsLast", "pktsLast", 31584, PropCategory.IMPLICIT_LASTREADING) prop.label = "BgpAllowed Packets current value" prop.isOper = True prop.isStats = True meta.props.add("pktsLast", prop) prop = PropMeta("str", "pktsMax", "pktsMax", 31589, PropCategory.IMPLICIT_MAX) prop.label = "BgpAllowed Packets maximum value" prop.isOper = True prop.isStats = True meta.props.add("pktsMax", prop) prop = PropMeta("str", "pktsMin", "pktsMin", 31588, PropCategory.IMPLICIT_MIN) prop.label = "BgpAllowed Packets minimum value" prop.isOper = True prop.isStats = True meta.props.add("pktsMin", prop) prop = PropMeta("str", "pktsPer", "pktsPer", 31587, PropCategory.IMPLICIT_PERIODIC) prop.label = "BgpAllowed Packets periodic" prop.isOper = True prop.isStats = True meta.props.add("pktsPer", prop) prop = PropMeta("str", "pktsRate", "pktsRate", 31595, PropCategory.IMPLICIT_RATE) prop.label = "BgpAllowed Packets rate" prop.isOper = True prop.isStats = True meta.props.add("pktsRate", prop) prop = PropMeta("str", "pktsRateAvg", "pktsRateAvg", 31608, PropCategory.IMPLICIT_AVG) prop.label = "BgpAllowed Packets rate average value" prop.isOper = True prop.isStats = True meta.props.add("pktsRateAvg", prop) prop = PropMeta("str", "pktsRateLast", "pktsRateLast", 31605, PropCategory.IMPLICIT_LASTREADING) prop.label = "BgpAllowed Packets rate current value" prop.isOper = True prop.isStats = True meta.props.add("pktsRateLast", prop) prop = PropMeta("str", "pktsRateMax", "pktsRateMax", 31607, PropCategory.IMPLICIT_MAX) prop.label = "BgpAllowed Packets rate maximum value" prop.isOper = True prop.isStats = True meta.props.add("pktsRateMax", prop) prop = PropMeta("str", "pktsRateMin", "pktsRateMin", 31606, PropCategory.IMPLICIT_MIN) prop.label = "BgpAllowed Packets rate minimum value" prop.isOper = True prop.isStats = True meta.props.add("pktsRateMin", prop) prop = PropMeta("str", "pktsRateSpct", "pktsRateSpct", 31609, PropCategory.IMPLICIT_SUSPECT) prop.label = "BgpAllowed Packets rate suspect count" prop.isOper = True prop.isStats = True meta.props.add("pktsRateSpct", prop) prop = PropMeta("str", "pktsRateThr", "pktsRateThr", 31611, PropCategory.IMPLICIT_THRESHOLDED) prop.label = "BgpAllowed Packets rate thresholded flags" prop.isOper = True prop.isStats = True prop.defaultValue = 0 prop.defaultValueStr = "unspecified" prop._addConstant("avgCrit", "avg-severity-critical", 2199023255552) prop._addConstant("avgHigh", "avg-crossed-high-threshold", 68719476736) prop._addConstant("avgLow", "avg-crossed-low-threshold", 137438953472) prop._addConstant("avgMajor", "avg-severity-major", 1099511627776) prop._addConstant("avgMinor", "avg-severity-minor", 549755813888) prop._addConstant("avgRecovering", "avg-recovering", 34359738368) prop._addConstant("avgWarn", "avg-severity-warning", 274877906944) prop._addConstant("cumulativeCrit", "cumulative-severity-critical", 8192) prop._addConstant("cumulativeHigh", "cumulative-crossed-high-threshold", 256) prop._addConstant("cumulativeLow", "cumulative-crossed-low-threshold", 512) prop._addConstant("cumulativeMajor", "cumulative-severity-major", 4096) prop._addConstant("cumulativeMinor", "cumulative-severity-minor", 2048) prop._addConstant("cumulativeRecovering", "cumulative-recovering", 128) prop._addConstant("cumulativeWarn", "cumulative-severity-warning", 1024) prop._addConstant("lastReadingCrit", "lastreading-severity-critical", 64) prop._addConstant("lastReadingHigh", "lastreading-crossed-high-threshold", 2) prop._addConstant("lastReadingLow", "lastreading-crossed-low-threshold", 4) prop._addConstant("lastReadingMajor", "lastreading-severity-major", 32) prop._addConstant("lastReadingMinor", "lastreading-severity-minor", 16) prop._addConstant("lastReadingRecovering", "lastreading-recovering", 1) prop._addConstant("lastReadingWarn", "lastreading-severity-warning", 8) prop._addConstant("maxCrit", "max-severity-critical", 17179869184) prop._addConstant("maxHigh", "max-crossed-high-threshold", 536870912) prop._addConstant("maxLow", "max-crossed-low-threshold", 1073741824) prop._addConstant("maxMajor", "max-severity-major", 8589934592) prop._addConstant("maxMinor", "max-severity-minor", 4294967296) prop._addConstant("maxRecovering", "max-recovering", 268435456) prop._addConstant("maxWarn", "max-severity-warning", 2147483648) prop._addConstant("minCrit", "min-severity-critical", 134217728) prop._addConstant("minHigh", "min-crossed-high-threshold", 4194304) prop._addConstant("minLow", "min-crossed-low-threshold", 8388608) prop._addConstant("minMajor", "min-severity-major", 67108864) prop._addConstant("minMinor", "min-severity-minor", 33554432) prop._addConstant("minRecovering", "min-recovering", 2097152) prop._addConstant("minWarn", "min-severity-warning", 16777216) prop._addConstant("periodicCrit", "periodic-severity-critical", 1048576) prop._addConstant("periodicHigh", "periodic-crossed-high-threshold", 32768) prop._addConstant("periodicLow", "periodic-crossed-low-threshold", 65536) prop._addConstant("periodicMajor", "periodic-severity-major", 524288) prop._addConstant("periodicMinor", "periodic-severity-minor", 262144) prop._addConstant("periodicRecovering", "periodic-recovering", 16384) prop._addConstant("periodicWarn", "periodic-severity-warning", 131072) prop._addConstant("rateCrit", "rate-severity-critical", 36028797018963968) prop._addConstant("rateHigh", "rate-crossed-high-threshold", 1125899906842624) prop._addConstant("rateLow", "rate-crossed-low-threshold", 2251799813685248) prop._addConstant("rateMajor", "rate-severity-major", 18014398509481984) prop._addConstant("rateMinor", "rate-severity-minor", 9007199254740992) prop._addConstant("rateRecovering", "rate-recovering", 562949953421312) prop._addConstant("rateWarn", "rate-severity-warning", 4503599627370496) prop._addConstant("trendCrit", "trend-severity-critical", 281474976710656) prop._addConstant("trendHigh", "trend-crossed-high-threshold", 8796093022208) prop._addConstant("trendLow", "trend-crossed-low-threshold", 17592186044416) prop._addConstant("trendMajor", "trend-severity-major", 140737488355328) prop._addConstant("trendMinor", "trend-severity-minor", 70368744177664) prop._addConstant("trendRecovering", "trend-recovering", 4398046511104) prop._addConstant("trendWarn", "trend-severity-warning", 35184372088832) prop._addConstant("unspecified", None, 0) meta.props.add("pktsRateThr", prop) prop = PropMeta("str", "pktsRateTr", "pktsRateTr", 31613, PropCategory.IMPLICIT_TREND) prop.label = "BgpAllowed Packets rate trend" prop.isOper = True prop.isStats = True meta.props.add("pktsRateTr", prop) prop = PropMeta("str", "pktsRateTrBase", "pktsRateTrBase", 31612, PropCategory.IMPLICIT_TREND_BASE) prop.label = "BgpAllowed Packets rate trend baseline" prop.isOper = True prop.isStats = True meta.props.add("pktsRateTrBase", prop) prop = PropMeta("str", "pktsRateTtl", "pktsRateTtl", 31610, PropCategory.IMPLICIT_TOTAL) prop.label = "BgpAllowed Packets rate total sum" prop.isOper = True prop.isStats = True meta.props.add("pktsRateTtl", prop) prop = PropMeta("str", "pktsSpct", "pktsSpct", 31591, PropCategory.IMPLICIT_SUSPECT) prop.label = "BgpAllowed Packets suspect count" prop.isOper = True prop.isStats = True meta.props.add("pktsSpct", prop) prop = PropMeta("str", "pktsThr", "pktsThr", 31592, PropCategory.IMPLICIT_THRESHOLDED) prop.label = "BgpAllowed Packets thresholded flags" prop.isOper = True prop.isStats = True prop.defaultValue = 0 prop.defaultValueStr = "unspecified" prop._addConstant("avgCrit", "avg-severity-critical", 2199023255552) prop._addConstant("avgHigh", "avg-crossed-high-threshold", 68719476736) prop._addConstant("avgLow", "avg-crossed-low-threshold", 137438953472) prop._addConstant("avgMajor", "avg-severity-major", 1099511627776) prop._addConstant("avgMinor", "avg-severity-minor", 549755813888) prop._addConstant("avgRecovering", "avg-recovering", 34359738368) prop._addConstant("avgWarn", "avg-severity-warning", 274877906944) prop._addConstant("cumulativeCrit", "cumulative-severity-critical", 8192) prop._addConstant("cumulativeHigh", "cumulative-crossed-high-threshold", 256) prop._addConstant("cumulativeLow", "cumulative-crossed-low-threshold", 512) prop._addConstant("cumulativeMajor", "cumulative-severity-major", 4096) prop._addConstant("cumulativeMinor", "cumulative-severity-minor", 2048) prop._addConstant("cumulativeRecovering", "cumulative-recovering", 128) prop._addConstant("cumulativeWarn", "cumulative-severity-warning", 1024) prop._addConstant("lastReadingCrit", "lastreading-severity-critical", 64) prop._addConstant("lastReadingHigh", "lastreading-crossed-high-threshold", 2) prop._addConstant("lastReadingLow", "lastreading-crossed-low-threshold", 4) prop._addConstant("lastReadingMajor", "lastreading-severity-major", 32) prop._addConstant("lastReadingMinor", "lastreading-severity-minor", 16) prop._addConstant("lastReadingRecovering", "lastreading-recovering", 1) prop._addConstant("lastReadingWarn", "lastreading-severity-warning", 8) prop._addConstant("maxCrit", "max-severity-critical", 17179869184) prop._addConstant("maxHigh", "max-crossed-high-threshold", 536870912) prop._addConstant("maxLow", "max-crossed-low-threshold", 1073741824) prop._addConstant("maxMajor", "max-severity-major", 8589934592) prop._addConstant("maxMinor", "max-severity-minor", 4294967296) prop._addConstant("maxRecovering", "max-recovering", 268435456) prop._addConstant("maxWarn", "max-severity-warning", 2147483648) prop._addConstant("minCrit", "min-severity-critical", 134217728) prop._addConstant("minHigh", "min-crossed-high-threshold", 4194304) prop._addConstant("minLow", "min-crossed-low-threshold", 8388608) prop._addConstant("minMajor", "min-severity-major", 67108864) prop._addConstant("minMinor", "min-severity-minor", 33554432) prop._addConstant("minRecovering", "min-recovering", 2097152) prop._addConstant("minWarn", "min-severity-warning", 16777216) prop._addConstant("periodicCrit", "periodic-severity-critical", 1048576) prop._addConstant("periodicHigh", "periodic-crossed-high-threshold", 32768) prop._addConstant("periodicLow", "periodic-crossed-low-threshold", 65536) prop._addConstant("periodicMajor", "periodic-severity-major", 524288) prop._addConstant("periodicMinor", "periodic-severity-minor", 262144) prop._addConstant("periodicRecovering", "periodic-recovering", 16384) prop._addConstant("periodicWarn", "periodic-severity-warning", 131072) prop._addConstant("rateCrit", "rate-severity-critical", 36028797018963968) prop._addConstant("rateHigh", "rate-crossed-high-threshold", 1125899906842624) prop._addConstant("rateLow", "rate-crossed-low-threshold", 2251799813685248) prop._addConstant("rateMajor", "rate-severity-major", 18014398509481984) prop._addConstant("rateMinor", "rate-severity-minor", 9007199254740992) prop._addConstant("rateRecovering", "rate-recovering", 562949953421312) prop._addConstant("rateWarn", "rate-severity-warning", 4503599627370496) prop._addConstant("trendCrit", "trend-severity-critical", 281474976710656) prop._addConstant("trendHigh", "trend-crossed-high-threshold", 8796093022208) prop._addConstant("trendLow", "trend-crossed-low-threshold", 17592186044416) prop._addConstant("trendMajor", "trend-severity-major", 140737488355328) prop._addConstant("trendMinor", "trend-severity-minor", 70368744177664) prop._addConstant("trendRecovering", "trend-recovering", 4398046511104) prop._addConstant("trendWarn", "trend-severity-warning", 35184372088832) prop._addConstant("unspecified", None, 0) meta.props.add("pktsThr", prop) prop = PropMeta("str", "pktsTr", "pktsTr", 31594, PropCategory.IMPLICIT_TREND) prop.label = "BgpAllowed Packets trend" prop.isOper = True prop.isStats = True meta.props.add("pktsTr", prop) prop = PropMeta("str", "pktsTrBase", "pktsTrBase", 31593, PropCategory.IMPLICIT_TREND_BASE) prop.label = "BgpAllowed Packets trend baseline" prop.isOper = True prop.isStats = True meta.props.add("pktsTrBase", prop) prop = PropMeta("str", "repIntvEnd", "repIntvEnd", 110, PropCategory.REGULAR) prop.label = "Reporting End Time" prop.isImplicit = True prop.isAdmin = True meta.props.add("repIntvEnd", prop) prop = PropMeta("str", "repIntvStart", "repIntvStart", 109, PropCategory.REGULAR) prop.label = "Reporting Start Time" prop.isImplicit = True prop.isAdmin = True meta.props.add("repIntvStart", prop) prop = PropMeta("str", "rn", "rn", 2, PropCategory.RN) prop.label = "None" prop.isRn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("rn", prop) prop = PropMeta("str", "status", "status", 3, PropCategory.STATUS) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("created", "created", 2) prop._addConstant("deleted", "deleted", 8) prop._addConstant("modified", "modified", 4) meta.props.add("status", prop) # Deployment Meta meta.deploymentQuery = True meta.deploymentType = "Ancestor" meta.deploymentQueryPaths.append(DeploymentPathMeta("l1EthIfToEPg", "EPG", "cobra.model.fv.EPg")) def __init__(self, parentMoOrDn, markDirty=True, **creationProps): namingVals = [] Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps)
class Domain(Mo): """ Mo doc not defined in techpub!!! """ meta = ClassMeta("cobra.model.adepg.Domain") meta.moClassName = "adepgDomain" meta.rnFormat = "dom-%(oid)s" meta.category = MoCategory.REGULAR meta.label = "AD domain" meta.writeAccessMask = 0x1 meta.readAccessMask = 0x1 meta.isDomainable = False meta.isReadOnly = True meta.isConfigurable = False meta.isDeletable = False meta.isContextRoot = False meta.childClasses.add("cobra.model.adepg.Group") meta.childNamesAndRnPrefix.append(("cobra.model.adepg.Group", "grp-")) meta.parentClasses.add("cobra.model.adepg.GroupCont") meta.superClasses.add("cobra.model.adepg.Entity") meta.superClasses.add("cobra.model.naming.NamedObject") meta.superClasses.add("cobra.model.adepg.AElement") meta.superClasses.add("cobra.model.adepg.AOrgUnit") meta.superClasses.add("cobra.model.naming.NamedIdentifiedObject") meta.rnPrefixes = [ ('dom-', True), ] prop = PropMeta("str", "childAction", "childAction", 4, PropCategory.CHILD_ACTION) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("deleteAll", "deleteall", 16384) prop._addConstant("deleteNonPresent", "deletenonpresent", 8192) prop._addConstant("ignore", "ignore", 4096) meta.props.add("childAction", prop) prop = PropMeta("str", "descr", "descr", 43729, PropCategory.REGULAR) prop.label = "Description" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 128)] prop.regex = ['[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]+'] meta.props.add("descr", prop) prop = PropMeta("str", "dn", "dn", 1, PropCategory.DN) prop.label = "None" prop.isDn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("dn", prop) prop = PropMeta("str", "id", "id", 43618, PropCategory.REGULAR) prop.label = "Id" prop.isImplicit = True prop.isAdmin = True meta.props.add("id", prop) prop = PropMeta("str", "issues", "issues", 43620, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "none" prop._addConstant("connection-fault", "failed-to-connect-to-external-identity-server", 1) prop._addConstant("none", "none", 0) meta.props.add("issues", prop) prop = PropMeta("str", "lcOwn", "lcOwn", 9, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "local" prop._addConstant("implicit", "implicit", 4) prop._addConstant("local", "local", 0) prop._addConstant("policy", "policy", 1) prop._addConstant("replica", "replica", 2) prop._addConstant("resolveOnBehalf", "resolvedonbehalf", 3) meta.props.add("lcOwn", prop) prop = PropMeta("str", "modTs", "modTs", 7, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "never" prop._addConstant("never", "never", 0) meta.props.add("modTs", prop) prop = PropMeta("str", "name", "name", 43619, PropCategory.REGULAR) prop.label = "Name" prop.isImplicit = True prop.isAdmin = True prop.range = [(0, 128)] prop.regex = ['[a-zA-Z0-9_.:-]+'] meta.props.add("name", prop) prop = PropMeta("str", "nameAlias", "nameAlias", 28417, PropCategory.REGULAR) prop.label = "Name alias" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 63)] prop.regex = ['[a-zA-Z0-9_.-]+'] meta.props.add("nameAlias", prop) prop = PropMeta("str", "oid", "oid", 43756, PropCategory.REGULAR) prop.label = "None" prop.isConfig = True prop.isAdmin = True prop.isCreateOnly = True prop.isNaming = True prop.range = [(1, 512)] meta.props.add("oid", prop) prop = PropMeta("str", "rn", "rn", 2, PropCategory.RN) prop.label = "None" prop.isRn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("rn", prop) prop = PropMeta("str", "status", "status", 3, PropCategory.STATUS) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("created", "created", 2) prop._addConstant("deleted", "deleted", 8) prop._addConstant("modified", "modified", 4) meta.props.add("status", prop) prop = PropMeta("str", "type", "type", 43611, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 1 prop.defaultValueStr = "dom" prop._addConstant("dom", "ad-domain", 1) prop._addConstant("event", "ad-event", 4) prop._addConstant("group", "ad-group", 2) prop._addConstant("unknown", "unknown", 0) prop._addConstant("user", "ad-user", 3) meta.props.add("type", prop) meta.namingProps.append(getattr(meta.props, "oid")) def __init__(self, parentMoOrDn, oid, markDirty=True, **creationProps): namingVals = [oid] Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps)
class Service(Mo): """ Mo doc not defined in techpub!!! """ meta = ClassMeta("cobra.model.comp.Service") meta.moClassName = "compService" meta.rnFormat = "svc-%(name)s" meta.category = MoCategory.REGULAR meta.label = "Service" meta.writeAccessMask = 0x5 meta.readAccessMask = 0x5 meta.isDomainable = False meta.isReadOnly = True meta.isConfigurable = False meta.isDeletable = False meta.isContextRoot = False meta.childClasses.add("cobra.model.comp.ServicePort") meta.childClasses.add("cobra.model.comp.RsEndpoint") meta.childNamesAndRnPrefix.append( ("cobra.model.comp.RsEndpoint", "rsendpoint-")) meta.childNamesAndRnPrefix.append(("cobra.model.comp.ServicePort", "p-")) meta.parentClasses.add("cobra.model.comp.Namespace") meta.superClasses.add("cobra.model.naming.NamedObject") meta.superClasses.add("cobra.model.naming.NamedIdentifiedObject") meta.superClasses.add("cobra.model.comp.Entity") meta.rnPrefixes = [ ('svc-', True), ] prop = PropMeta("str", "childAction", "childAction", 4, PropCategory.CHILD_ACTION) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("deleteAll", "deleteall", 16384) prop._addConstant("deleteNonPresent", "deletenonpresent", 8192) prop._addConstant("ignore", "ignore", 4096) meta.props.add("childAction", prop) prop = PropMeta("str", "clusterIp", "clusterIp", 33731, PropCategory.REGULAR) prop.label = "Cluster IP" prop.isImplicit = True prop.isAdmin = True meta.props.add("clusterIp", prop) prop = PropMeta("str", "descr", "descr", 5587, PropCategory.REGULAR) prop.label = "Description" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 128)] prop.regex = ['[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]+'] meta.props.add("descr", prop) prop = PropMeta("str", "dn", "dn", 1, PropCategory.DN) prop.label = "None" prop.isDn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("dn", prop) prop = PropMeta("str", "guid", "guid", 33729, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.range = [(0, 512)] meta.props.add("guid", prop) prop = PropMeta("str", "id", "id", 1003, PropCategory.REGULAR) prop.label = "Id" prop.isImplicit = True prop.isAdmin = True meta.props.add("id", prop) prop = PropMeta("str", "issues", "issues", 34206, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "none" prop._addConstant("ds-update-fault", "failed-to-update-ds(data-store)-property", 4096) prop._addConstant("hpnic-miss-epg-fault", "hpnic-is-attached-to-an-invalid-uplink-dvs-port-group", 32) prop._addConstant("hv-disconnect-fault", "esx-host-is-disconnected-or-not-responding", 128) prop._addConstant("hv-miss-dvs-fault", "esx-host-is-configured-with-invalid-dvs", 64) prop._addConstant("hv-miss-pnic-fault", "esx-host-does-not-have-any-pnic", 1024) prop._addConstant("hv-miss-vmknic-fault", "esx-host-does-not-have-any-vmknic", 256) prop._addConstant("hv-update-fault", "failed-to-update-hv(esx-host)-property", 2) prop._addConstant("lnode-property-fault", "failed-to-get-dvs-property", 1) prop._addConstant("mgmtnic-miss-dvs-fault", "vmk-nic-is-configured-with-invalid-dvs", 512) prop._addConstant("none", "none", 0) prop._addConstant( "opflex-channels-down-ave", "both-the-opflex-channels-are-down-for-ave.-please-check-the-connections-on-the-host.", 16384) prop._addConstant( "prep-iso-file-fault", "failed-to-prepare-or-push-iso-file-for-service-vm-deployment.-please-check-if-correct-datastore-is-selected-in-policy.", 131072) prop._addConstant("rp-update-fault", "failed-to-update-rp(resource-pool)-property", 8192) prop._addConstant("tagging-cat-fault", "failed-to-retrieve-all-tag-category-information", 65536) prop._addConstant("tagging-tag-fault", "failed-to-retrieve-all-tag-information", 32768) prop._addConstant("vm-deploy-task-fault", "deployvm-task-failed-on-vcenter", 2048) prop._addConstant("vm-miss-hv-fault", "vm-is-attached-to-an-invalid-hv(esx-host)", 8) prop._addConstant("vm-update-fault", "failed-to-update-vm(virtual-machine)-property", 4) prop._addConstant("vmfolder-update-fault", "failed-to-update-vm(virtual-machine)-folder-property", 262144) prop._addConstant( "vnic-miss-epg-fault", "vnic-is-attached-to-an-invalid-dvs-port-group-or-unable-to-communicate-with-vcenter", 16) meta.props.add("issues", prop) prop = PropMeta("str", "lbIp", "lbIp", 33732, PropCategory.REGULAR) prop.label = "Load Balancer IP" prop.isImplicit = True prop.isAdmin = True meta.props.add("lbIp", prop) prop = PropMeta("str", "lcOwn", "lcOwn", 9, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "local" prop._addConstant("implicit", "implicit", 4) prop._addConstant("local", "local", 0) prop._addConstant("policy", "policy", 1) prop._addConstant("replica", "replica", 2) prop._addConstant("resolveOnBehalf", "resolvedonbehalf", 3) meta.props.add("lcOwn", prop) prop = PropMeta("str", "modTs", "modTs", 7, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "never" prop._addConstant("never", "never", 0) meta.props.add("modTs", prop) prop = PropMeta("str", "name", "name", 33767, PropCategory.REGULAR) prop.label = "Name" prop.isConfig = True prop.isAdmin = True prop.isCreateOnly = True prop.isNaming = True prop.range = [(1, 128)] meta.props.add("name", prop) prop = PropMeta("str", "nameAlias", "nameAlias", 28417, PropCategory.REGULAR) prop.label = "Name alias" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 63)] prop.regex = ['[a-zA-Z0-9_.-]+'] meta.props.add("nameAlias", prop) prop = PropMeta("str", "namespace", "namespace", 34200, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.range = [(0, 512)] meta.props.add("namespace", prop) prop = PropMeta("str", "rn", "rn", 2, PropCategory.RN) prop.label = "None" prop.isRn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("rn", prop) prop = PropMeta("str", "status", "status", 3, PropCategory.STATUS) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("created", "created", 2) prop._addConstant("deleted", "deleted", 8) prop._addConstant("modified", "modified", 4) meta.props.add("status", prop) prop = PropMeta("str", "type", "type", 33730, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "clusterIp" prop._addConstant("clusterIp", "cluster-ip", 0) prop._addConstant("externalName", "external-name", 1) prop._addConstant("loadBalancer", "load-balancer", 3) prop._addConstant("nodePort", "node-port", 2) meta.props.add("type", prop) meta.namingProps.append(getattr(meta.props, "name")) def __init__(self, parentMoOrDn, name, markDirty=True, **creationProps): namingVals = [name] Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps)
class RwiContFn(Mo): """ This is generated and used only by internal processes. """ meta = ClassMeta("cobra.model.adcom.RwiContFn") meta.moClassName = "adcomRwiContFn" meta.rnFormat = "rcontfn" meta.category = MoCategory.REGULAR meta.label = "RwiFn Container" meta.writeAccessMask = 0x1 meta.readAccessMask = 0x1 meta.isDomainable = False meta.isReadOnly = True meta.isConfigurable = False meta.isDeletable = False meta.isContextRoot = False meta.childClasses.add("cobra.model.adcom.RwiFnAdvanced") meta.childClasses.add("cobra.model.adcom.RwiFn") meta.childNamesAndRnPrefix.append(("cobra.model.adcom.RwiFnAdvanced", "rwifnadv-")) meta.childNamesAndRnPrefix.append(("cobra.model.adcom.RwiFn", "rwifn-")) meta.parentClasses.add("cobra.model.adcom.RwiCont") meta.superClasses.add("cobra.model.naming.NamedObject") meta.rnPrefixes = [ ('rcontfn', False), ] prop = PropMeta("str", "childAction", "childAction", 4, PropCategory.CHILD_ACTION) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("deleteAll", "deleteall", 16384) prop._addConstant("deleteNonPresent", "deletenonpresent", 8192) prop._addConstant("ignore", "ignore", 4096) meta.props.add("childAction", prop) prop = PropMeta("str", "dn", "dn", 1, PropCategory.DN) prop.label = "None" prop.isDn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("dn", prop) prop = PropMeta("str", "lcOwn", "lcOwn", 9, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "local" prop._addConstant("implicit", "implicit", 4) prop._addConstant("local", "local", 0) prop._addConstant("policy", "policy", 1) prop._addConstant("replica", "replica", 2) prop._addConstant("resolveOnBehalf", "resolvedonbehalf", 3) meta.props.add("lcOwn", prop) prop = PropMeta("str", "modTs", "modTs", 7, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "never" prop._addConstant("never", "never", 0) meta.props.add("modTs", prop) prop = PropMeta("str", "name", "name", 5577, PropCategory.REGULAR) prop.label = "Name" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 16)] prop.regex = ['[a-zA-Z0-9_.:-]+'] meta.props.add("name", prop) prop = PropMeta("str", "nameAlias", "nameAlias", 28417, PropCategory.REGULAR) prop.label = "Name alias" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 63)] prop.regex = ['[a-zA-Z0-9_.-]+'] meta.props.add("nameAlias", prop) prop = PropMeta("str", "rn", "rn", 2, PropCategory.RN) prop.label = "None" prop.isRn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("rn", prop) prop = PropMeta("str", "status", "status", 3, PropCategory.STATUS) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("created", "created", 2) prop._addConstant("deleted", "deleted", 8) prop._addConstant("modified", "modified", 4) meta.props.add("status", prop) def __init__(self, parentMoOrDn, markDirty=True, **creationProps): namingVals = [] Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps)
class PeerKeepAliveHist1mo(Mo): """ Mo doc not defined in techpub!!! """ meta = StatsClassMeta("cobra.model.bgp.PeerKeepAliveHist1mo", "BGP Peer Keepalive") counter = CounterMeta("keepaliveRcvd", CounterCategory.COUNTER, "packets", "Number of Keepalive Messages Received") counter._propRefs[PropCategory.IMPLICIT_CUMULATIVE] = "keepaliveRcvdCum" counter._propRefs[PropCategory.IMPLICIT_PERIODIC] = "keepaliveRcvdPer" counter._propRefs[PropCategory.IMPLICIT_MIN] = "keepaliveRcvdMin" counter._propRefs[PropCategory.IMPLICIT_MAX] = "keepaliveRcvdMax" counter._propRefs[PropCategory.IMPLICIT_AVG] = "keepaliveRcvdAvg" counter._propRefs[PropCategory.IMPLICIT_SUSPECT] = "keepaliveRcvdSpct" counter._propRefs[PropCategory.IMPLICIT_THRESHOLDED] = "keepaliveRcvdThr" counter._propRefs[PropCategory.IMPLICIT_TREND] = "keepaliveRcvdTr" counter._propRefs[PropCategory.IMPLICIT_RATE] = "keepaliveRcvdRate" meta._counters.append(counter) counter = CounterMeta("keepaliveSent", CounterCategory.COUNTER, "packets", "Number of Keepalive Messages Sent") counter._propRefs[PropCategory.IMPLICIT_CUMULATIVE] = "keepaliveSentCum" counter._propRefs[PropCategory.IMPLICIT_PERIODIC] = "keepaliveSentPer" counter._propRefs[PropCategory.IMPLICIT_MIN] = "keepaliveSentMin" counter._propRefs[PropCategory.IMPLICIT_MAX] = "keepaliveSentMax" counter._propRefs[PropCategory.IMPLICIT_AVG] = "keepaliveSentAvg" counter._propRefs[PropCategory.IMPLICIT_SUSPECT] = "keepaliveSentSpct" counter._propRefs[PropCategory.IMPLICIT_THRESHOLDED] = "keepaliveSentThr" counter._propRefs[PropCategory.IMPLICIT_TREND] = "keepaliveSentTr" counter._propRefs[PropCategory.IMPLICIT_RATE] = "keepaliveSentRate" meta._counters.append(counter) meta.moClassName = "bgpPeerKeepAliveHist1mo" meta.rnFormat = "HDbgpPeerKeepAlive1mo-%(index)s" meta.category = MoCategory.STATS_HISTORY meta.label = "historical BGP Peer Keepalive stats in 1 month" meta.writeAccessMask = 0x8008020040001 meta.readAccessMask = 0x8008020040001 meta.isDomainable = False meta.isReadOnly = True meta.isConfigurable = False meta.isDeletable = False meta.isContextRoot = True meta.parentClasses.add("cobra.model.bgp.Peer") meta.superClasses.add("cobra.model.bgp.PeerKeepAliveHist") meta.superClasses.add("cobra.model.stats.Hist") meta.superClasses.add("cobra.model.stats.Item") meta.rnPrefixes = [ ('HDbgpPeerKeepAlive1mo-', True), ] prop = PropMeta("str", "childAction", "childAction", 4, PropCategory.CHILD_ACTION) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("deleteAll", "deleteall", 16384) prop._addConstant("deleteNonPresent", "deletenonpresent", 8192) prop._addConstant("ignore", "ignore", 4096) meta.props.add("childAction", prop) prop = PropMeta("str", "cnt", "cnt", 16212, PropCategory.REGULAR) prop.label = "Number of Collections During this Interval" prop.isImplicit = True prop.isAdmin = True meta.props.add("cnt", prop) prop = PropMeta("str", "dn", "dn", 1, PropCategory.DN) prop.label = "None" prop.isDn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("dn", prop) prop = PropMeta("str", "index", "index", 47716, PropCategory.REGULAR) prop.label = "History Index" prop.isConfig = True prop.isAdmin = True prop.isCreateOnly = True prop.isNaming = True meta.props.add("index", prop) prop = PropMeta("str", "keepaliveRcvdAvg", "keepaliveRcvdAvg", 47997, PropCategory.IMPLICIT_AVG) prop.label = "Number of Keepalive Messages Received average value" prop.isOper = True prop.isStats = True meta.props.add("keepaliveRcvdAvg", prop) prop = PropMeta("str", "keepaliveRcvdCum", "keepaliveRcvdCum", 47993, PropCategory.IMPLICIT_CUMULATIVE) prop.label = "Number of Keepalive Messages Received cumulative" prop.isOper = True prop.isStats = True meta.props.add("keepaliveRcvdCum", prop) prop = PropMeta("str", "keepaliveRcvdMax", "keepaliveRcvdMax", 47996, PropCategory.IMPLICIT_MAX) prop.label = "Number of Keepalive Messages Received maximum value" prop.isOper = True prop.isStats = True meta.props.add("keepaliveRcvdMax", prop) prop = PropMeta("str", "keepaliveRcvdMin", "keepaliveRcvdMin", 47995, PropCategory.IMPLICIT_MIN) prop.label = "Number of Keepalive Messages Received minimum value" prop.isOper = True prop.isStats = True meta.props.add("keepaliveRcvdMin", prop) prop = PropMeta("str", "keepaliveRcvdPer", "keepaliveRcvdPer", 47994, PropCategory.IMPLICIT_PERIODIC) prop.label = "Number of Keepalive Messages Received periodic" prop.isOper = True prop.isStats = True meta.props.add("keepaliveRcvdPer", prop) prop = PropMeta("str", "keepaliveRcvdRate", "keepaliveRcvdRate", 48001, PropCategory.IMPLICIT_RATE) prop.label = "Number of Keepalive Messages Received rate" prop.isOper = True prop.isStats = True meta.props.add("keepaliveRcvdRate", prop) prop = PropMeta("str", "keepaliveRcvdSpct", "keepaliveRcvdSpct", 47998, PropCategory.IMPLICIT_SUSPECT) prop.label = "Number of Keepalive Messages Received suspect count" prop.isOper = True prop.isStats = True meta.props.add("keepaliveRcvdSpct", prop) prop = PropMeta("str", "keepaliveRcvdThr", "keepaliveRcvdThr", 47999, PropCategory.IMPLICIT_THRESHOLDED) prop.label = "Number of Keepalive Messages Received thresholded flags" prop.isOper = True prop.isStats = True prop.defaultValue = 0 prop.defaultValueStr = "unspecified" prop._addConstant("avgCrit", "avg-severity-critical", 2199023255552) prop._addConstant("avgHigh", "avg-crossed-high-threshold", 68719476736) prop._addConstant("avgLow", "avg-crossed-low-threshold", 137438953472) prop._addConstant("avgMajor", "avg-severity-major", 1099511627776) prop._addConstant("avgMinor", "avg-severity-minor", 549755813888) prop._addConstant("avgRecovering", "avg-recovering", 34359738368) prop._addConstant("avgWarn", "avg-severity-warning", 274877906944) prop._addConstant("cumulativeCrit", "cumulative-severity-critical", 8192) prop._addConstant("cumulativeHigh", "cumulative-crossed-high-threshold", 256) prop._addConstant("cumulativeLow", "cumulative-crossed-low-threshold", 512) prop._addConstant("cumulativeMajor", "cumulative-severity-major", 4096) prop._addConstant("cumulativeMinor", "cumulative-severity-minor", 2048) prop._addConstant("cumulativeRecovering", "cumulative-recovering", 128) prop._addConstant("cumulativeWarn", "cumulative-severity-warning", 1024) prop._addConstant("lastReadingCrit", "lastreading-severity-critical", 64) prop._addConstant("lastReadingHigh", "lastreading-crossed-high-threshold", 2) prop._addConstant("lastReadingLow", "lastreading-crossed-low-threshold", 4) prop._addConstant("lastReadingMajor", "lastreading-severity-major", 32) prop._addConstant("lastReadingMinor", "lastreading-severity-minor", 16) prop._addConstant("lastReadingRecovering", "lastreading-recovering", 1) prop._addConstant("lastReadingWarn", "lastreading-severity-warning", 8) prop._addConstant("maxCrit", "max-severity-critical", 17179869184) prop._addConstant("maxHigh", "max-crossed-high-threshold", 536870912) prop._addConstant("maxLow", "max-crossed-low-threshold", 1073741824) prop._addConstant("maxMajor", "max-severity-major", 8589934592) prop._addConstant("maxMinor", "max-severity-minor", 4294967296) prop._addConstant("maxRecovering", "max-recovering", 268435456) prop._addConstant("maxWarn", "max-severity-warning", 2147483648) prop._addConstant("minCrit", "min-severity-critical", 134217728) prop._addConstant("minHigh", "min-crossed-high-threshold", 4194304) prop._addConstant("minLow", "min-crossed-low-threshold", 8388608) prop._addConstant("minMajor", "min-severity-major", 67108864) prop._addConstant("minMinor", "min-severity-minor", 33554432) prop._addConstant("minRecovering", "min-recovering", 2097152) prop._addConstant("minWarn", "min-severity-warning", 16777216) prop._addConstant("periodicCrit", "periodic-severity-critical", 1048576) prop._addConstant("periodicHigh", "periodic-crossed-high-threshold", 32768) prop._addConstant("periodicLow", "periodic-crossed-low-threshold", 65536) prop._addConstant("periodicMajor", "periodic-severity-major", 524288) prop._addConstant("periodicMinor", "periodic-severity-minor", 262144) prop._addConstant("periodicRecovering", "periodic-recovering", 16384) prop._addConstant("periodicWarn", "periodic-severity-warning", 131072) prop._addConstant("rateCrit", "rate-severity-critical", 36028797018963968) prop._addConstant("rateHigh", "rate-crossed-high-threshold", 1125899906842624) prop._addConstant("rateLow", "rate-crossed-low-threshold", 2251799813685248) prop._addConstant("rateMajor", "rate-severity-major", 18014398509481984) prop._addConstant("rateMinor", "rate-severity-minor", 9007199254740992) prop._addConstant("rateRecovering", "rate-recovering", 562949953421312) prop._addConstant("rateWarn", "rate-severity-warning", 4503599627370496) prop._addConstant("trendCrit", "trend-severity-critical", 281474976710656) prop._addConstant("trendHigh", "trend-crossed-high-threshold", 8796093022208) prop._addConstant("trendLow", "trend-crossed-low-threshold", 17592186044416) prop._addConstant("trendMajor", "trend-severity-major", 140737488355328) prop._addConstant("trendMinor", "trend-severity-minor", 70368744177664) prop._addConstant("trendRecovering", "trend-recovering", 4398046511104) prop._addConstant("trendWarn", "trend-severity-warning", 35184372088832) prop._addConstant("unspecified", None, 0) meta.props.add("keepaliveRcvdThr", prop) prop = PropMeta("str", "keepaliveRcvdTr", "keepaliveRcvdTr", 48000, PropCategory.IMPLICIT_TREND) prop.label = "Number of Keepalive Messages Received trend" prop.isOper = True prop.isStats = True meta.props.add("keepaliveRcvdTr", prop) prop = PropMeta("str", "keepaliveSentAvg", "keepaliveSentAvg", 48018, PropCategory.IMPLICIT_AVG) prop.label = "Number of Keepalive Messages Sent average value" prop.isOper = True prop.isStats = True meta.props.add("keepaliveSentAvg", prop) prop = PropMeta("str", "keepaliveSentCum", "keepaliveSentCum", 48014, PropCategory.IMPLICIT_CUMULATIVE) prop.label = "Number of Keepalive Messages Sent cumulative" prop.isOper = True prop.isStats = True meta.props.add("keepaliveSentCum", prop) prop = PropMeta("str", "keepaliveSentMax", "keepaliveSentMax", 48017, PropCategory.IMPLICIT_MAX) prop.label = "Number of Keepalive Messages Sent maximum value" prop.isOper = True prop.isStats = True meta.props.add("keepaliveSentMax", prop) prop = PropMeta("str", "keepaliveSentMin", "keepaliveSentMin", 48016, PropCategory.IMPLICIT_MIN) prop.label = "Number of Keepalive Messages Sent minimum value" prop.isOper = True prop.isStats = True meta.props.add("keepaliveSentMin", prop) prop = PropMeta("str", "keepaliveSentPer", "keepaliveSentPer", 48015, PropCategory.IMPLICIT_PERIODIC) prop.label = "Number of Keepalive Messages Sent periodic" prop.isOper = True prop.isStats = True meta.props.add("keepaliveSentPer", prop) prop = PropMeta("str", "keepaliveSentRate", "keepaliveSentRate", 48022, PropCategory.IMPLICIT_RATE) prop.label = "Number of Keepalive Messages Sent rate" prop.isOper = True prop.isStats = True meta.props.add("keepaliveSentRate", prop) prop = PropMeta("str", "keepaliveSentSpct", "keepaliveSentSpct", 48019, PropCategory.IMPLICIT_SUSPECT) prop.label = "Number of Keepalive Messages Sent suspect count" prop.isOper = True prop.isStats = True meta.props.add("keepaliveSentSpct", prop) prop = PropMeta("str", "keepaliveSentThr", "keepaliveSentThr", 48020, PropCategory.IMPLICIT_THRESHOLDED) prop.label = "Number of Keepalive Messages Sent thresholded flags" prop.isOper = True prop.isStats = True prop.defaultValue = 0 prop.defaultValueStr = "unspecified" prop._addConstant("avgCrit", "avg-severity-critical", 2199023255552) prop._addConstant("avgHigh", "avg-crossed-high-threshold", 68719476736) prop._addConstant("avgLow", "avg-crossed-low-threshold", 137438953472) prop._addConstant("avgMajor", "avg-severity-major", 1099511627776) prop._addConstant("avgMinor", "avg-severity-minor", 549755813888) prop._addConstant("avgRecovering", "avg-recovering", 34359738368) prop._addConstant("avgWarn", "avg-severity-warning", 274877906944) prop._addConstant("cumulativeCrit", "cumulative-severity-critical", 8192) prop._addConstant("cumulativeHigh", "cumulative-crossed-high-threshold", 256) prop._addConstant("cumulativeLow", "cumulative-crossed-low-threshold", 512) prop._addConstant("cumulativeMajor", "cumulative-severity-major", 4096) prop._addConstant("cumulativeMinor", "cumulative-severity-minor", 2048) prop._addConstant("cumulativeRecovering", "cumulative-recovering", 128) prop._addConstant("cumulativeWarn", "cumulative-severity-warning", 1024) prop._addConstant("lastReadingCrit", "lastreading-severity-critical", 64) prop._addConstant("lastReadingHigh", "lastreading-crossed-high-threshold", 2) prop._addConstant("lastReadingLow", "lastreading-crossed-low-threshold", 4) prop._addConstant("lastReadingMajor", "lastreading-severity-major", 32) prop._addConstant("lastReadingMinor", "lastreading-severity-minor", 16) prop._addConstant("lastReadingRecovering", "lastreading-recovering", 1) prop._addConstant("lastReadingWarn", "lastreading-severity-warning", 8) prop._addConstant("maxCrit", "max-severity-critical", 17179869184) prop._addConstant("maxHigh", "max-crossed-high-threshold", 536870912) prop._addConstant("maxLow", "max-crossed-low-threshold", 1073741824) prop._addConstant("maxMajor", "max-severity-major", 8589934592) prop._addConstant("maxMinor", "max-severity-minor", 4294967296) prop._addConstant("maxRecovering", "max-recovering", 268435456) prop._addConstant("maxWarn", "max-severity-warning", 2147483648) prop._addConstant("minCrit", "min-severity-critical", 134217728) prop._addConstant("minHigh", "min-crossed-high-threshold", 4194304) prop._addConstant("minLow", "min-crossed-low-threshold", 8388608) prop._addConstant("minMajor", "min-severity-major", 67108864) prop._addConstant("minMinor", "min-severity-minor", 33554432) prop._addConstant("minRecovering", "min-recovering", 2097152) prop._addConstant("minWarn", "min-severity-warning", 16777216) prop._addConstant("periodicCrit", "periodic-severity-critical", 1048576) prop._addConstant("periodicHigh", "periodic-crossed-high-threshold", 32768) prop._addConstant("periodicLow", "periodic-crossed-low-threshold", 65536) prop._addConstant("periodicMajor", "periodic-severity-major", 524288) prop._addConstant("periodicMinor", "periodic-severity-minor", 262144) prop._addConstant("periodicRecovering", "periodic-recovering", 16384) prop._addConstant("periodicWarn", "periodic-severity-warning", 131072) prop._addConstant("rateCrit", "rate-severity-critical", 36028797018963968) prop._addConstant("rateHigh", "rate-crossed-high-threshold", 1125899906842624) prop._addConstant("rateLow", "rate-crossed-low-threshold", 2251799813685248) prop._addConstant("rateMajor", "rate-severity-major", 18014398509481984) prop._addConstant("rateMinor", "rate-severity-minor", 9007199254740992) prop._addConstant("rateRecovering", "rate-recovering", 562949953421312) prop._addConstant("rateWarn", "rate-severity-warning", 4503599627370496) prop._addConstant("trendCrit", "trend-severity-critical", 281474976710656) prop._addConstant("trendHigh", "trend-crossed-high-threshold", 8796093022208) prop._addConstant("trendLow", "trend-crossed-low-threshold", 17592186044416) prop._addConstant("trendMajor", "trend-severity-major", 140737488355328) prop._addConstant("trendMinor", "trend-severity-minor", 70368744177664) prop._addConstant("trendRecovering", "trend-recovering", 4398046511104) prop._addConstant("trendWarn", "trend-severity-warning", 35184372088832) prop._addConstant("unspecified", None, 0) meta.props.add("keepaliveSentThr", prop) prop = PropMeta("str", "keepaliveSentTr", "keepaliveSentTr", 48021, PropCategory.IMPLICIT_TREND) prop.label = "Number of Keepalive Messages Sent trend" prop.isOper = True prop.isStats = True meta.props.add("keepaliveSentTr", prop) prop = PropMeta("str", "lastCollOffset", "lastCollOffset", 111, PropCategory.REGULAR) prop.label = "Collection Length" prop.isImplicit = True prop.isAdmin = True meta.props.add("lastCollOffset", prop) prop = PropMeta("str", "modTs", "modTs", 7, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "never" prop._addConstant("never", "never", 0) meta.props.add("modTs", prop) prop = PropMeta("str", "repIntvEnd", "repIntvEnd", 110, PropCategory.REGULAR) prop.label = "Reporting End Time" prop.isImplicit = True prop.isAdmin = True meta.props.add("repIntvEnd", prop) prop = PropMeta("str", "repIntvStart", "repIntvStart", 109, PropCategory.REGULAR) prop.label = "Reporting Start Time" prop.isImplicit = True prop.isAdmin = True meta.props.add("repIntvStart", prop) prop = PropMeta("str", "rn", "rn", 2, PropCategory.RN) prop.label = "None" prop.isRn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("rn", prop) prop = PropMeta("str", "status", "status", 3, PropCategory.STATUS) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("created", "created", 2) prop._addConstant("deleted", "deleted", 8) prop._addConstant("modified", "modified", 4) meta.props.add("status", prop) meta.namingProps.append(getattr(meta.props, "index")) def __init__(self, parentMoOrDn, index, markDirty=True, **creationProps): namingVals = [index] Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps)
class WebConnStatesAgHist15min(Mo): """ A class that represents historical aggregated statistics for web connections state in a 15 minute sampling interval. This class updates every 5 minutes. """ meta = StatsClassMeta("cobra.model.comm.WebConnStatesAgHist15min", "web connections state") counter = CounterMeta("wait", CounterCategory.GAUGE, "connections", "current waiting connections") meta._counters.append(counter) counter = CounterMeta("write", CounterCategory.GAUGE, "connections", "current writing connections") meta._counters.append(counter) counter = CounterMeta("read", CounterCategory.GAUGE, "connections", "current reading connections") meta._counters.append(counter) meta.moClassName = "commWebConnStatesAgHist15min" meta.rnFormat = "HDcommWebConnStatesAg15min-%(index)s" meta.category = MoCategory.STATS_HISTORY meta.label = "historical aggregated web connections state stats in 15 minute" meta.writeAccessMask = 0x1 meta.readAccessMask = 0x1 meta.isDomainable = False meta.isReadOnly = True meta.isConfigurable = False meta.isDeletable = False meta.isContextRoot = True meta.parentClasses.add("cobra.model.comm.Https") meta.parentClasses.add("cobra.model.comm.Http") meta.superClasses.add("cobra.model.stats.Item") meta.superClasses.add("cobra.model.stats.Hist") meta.superClasses.add("cobra.model.comm.WebConnStatesAgHist") meta.rnPrefixes = [ ('HDcommWebConnStatesAg15min-', True), ] prop = PropMeta("str", "childAction", "childAction", 4, PropCategory.CHILD_ACTION) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("deleteAll", "deleteall", 16384) prop._addConstant("deleteNonPresent", "deletenonpresent", 8192) prop._addConstant("ignore", "ignore", 4096) meta.props.add("childAction", prop) prop = PropMeta("str", "cnt", "cnt", 16212, PropCategory.REGULAR) prop.label = "Number of Collections During this Interval" prop.isImplicit = True prop.isAdmin = True meta.props.add("cnt", prop) prop = PropMeta("str", "dn", "dn", 1, PropCategory.DN) prop.label = "None" prop.isDn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("dn", prop) prop = PropMeta("str", "index", "index", 19390, PropCategory.REGULAR) prop.label = "History Index" prop.isConfig = True prop.isAdmin = True prop.isCreateOnly = True prop.isNaming = True meta.props.add("index", prop) prop = PropMeta("str", "lastCollOffset", "lastCollOffset", 111, PropCategory.REGULAR) prop.label = "Collection Length" prop.isImplicit = True prop.isAdmin = True meta.props.add("lastCollOffset", prop) prop = PropMeta("str", "modTs", "modTs", 7, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "never" prop._addConstant("never", "never", 0) meta.props.add("modTs", prop) prop = PropMeta("str", "repIntvEnd", "repIntvEnd", 110, PropCategory.REGULAR) prop.label = "Reporting End Time" prop.isImplicit = True prop.isAdmin = True meta.props.add("repIntvEnd", prop) prop = PropMeta("str", "repIntvStart", "repIntvStart", 109, PropCategory.REGULAR) prop.label = "Reporting Start Time" prop.isImplicit = True prop.isAdmin = True meta.props.add("repIntvStart", prop) prop = PropMeta("str", "rn", "rn", 2, PropCategory.RN) prop.label = "None" prop.isRn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("rn", prop) prop = PropMeta("str", "status", "status", 3, PropCategory.STATUS) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("created", "created", 2) prop._addConstant("deleted", "deleted", 8) prop._addConstant("modified", "modified", 4) meta.props.add("status", prop) meta.namingProps.append(getattr(meta.props, "index")) # Deployment Meta meta.deploymentQuery = True meta.deploymentType = "Ancestor" def __init__(self, parentMoOrDn, index, markDirty=True, **creationProps): namingVals = [index] Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps)
class PwdStrengthProfile(Mo): """ Mo doc not defined in techpub!!! """ meta = ClassMeta("cobra.model.aaa.PwdStrengthProfile") meta.moClassName = "aaaPwdStrengthProfile" meta.rnFormat = "pwdstrengthprofile" meta.category = MoCategory.REGULAR meta.label = "Password Strength Policy" meta.writeAccessMask = 0x3 meta.readAccessMask = 0x3 meta.isDomainable = False meta.isReadOnly = False meta.isConfigurable = True meta.isDeletable = True meta.isContextRoot = False meta.childClasses.add("cobra.model.tag.Tag") meta.childClasses.add("cobra.model.fault.Delegate") meta.childClasses.add("cobra.model.aaa.RbacAnnotation") meta.childClasses.add("cobra.model.tag.Annotation") meta.childNamesAndRnPrefix.append( ("cobra.model.tag.Annotation", "annotationKey-")) meta.childNamesAndRnPrefix.append( ("cobra.model.aaa.RbacAnnotation", "rbacDom-")) meta.childNamesAndRnPrefix.append(("cobra.model.tag.Tag", "tagKey-")) meta.childNamesAndRnPrefix.append(("cobra.model.fault.Delegate", "fd-")) meta.parentClasses.add("cobra.model.aaa.UserEp") meta.superClasses.add("cobra.model.aaa.Definition") meta.superClasses.add("cobra.model.pol.Obj") meta.superClasses.add("cobra.model.pol.Def") meta.superClasses.add("cobra.model.naming.NamedObject") meta.rnPrefixes = [ ('pwdstrengthprofile', False), ] prop = PropMeta("str", "annotation", "annotation", 38724, PropCategory.REGULAR) prop.label = "Annotation. Suggested format orchestrator:value" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 128)] prop.regex = ['[a-zA-Z0-9_.:-]+'] meta.props.add("annotation", prop) prop = PropMeta("str", "childAction", "childAction", 4, PropCategory.CHILD_ACTION) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("deleteAll", "deleteall", 16384) prop._addConstant("deleteNonPresent", "deletenonpresent", 8192) prop._addConstant("ignore", "ignore", 4096) meta.props.add("childAction", prop) prop = PropMeta("str", "descr", "descr", 5579, PropCategory.REGULAR) prop.label = "Description" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 128)] prop.regex = ['[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]+'] meta.props.add("descr", prop) prop = PropMeta("str", "dn", "dn", 1, PropCategory.DN) prop.label = "None" prop.isDn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("dn", prop) prop = PropMeta("str", "extMngdBy", "extMngdBy", 40863, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "undefined" prop._addConstant("msc", "msc", 1) prop._addConstant("undefined", "undefined", 0) meta.props.add("extMngdBy", prop) prop = PropMeta("str", "lcOwn", "lcOwn", 9, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "local" prop._addConstant("implicit", "implicit", 4) prop._addConstant("local", "local", 0) prop._addConstant("policy", "policy", 1) prop._addConstant("replica", "replica", 2) prop._addConstant("resolveOnBehalf", "resolvedonbehalf", 3) meta.props.add("lcOwn", prop) prop = PropMeta("str", "modTs", "modTs", 7, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "never" prop._addConstant("never", "never", 0) meta.props.add("modTs", prop) prop = PropMeta("str", "name", "name", 1219, PropCategory.REGULAR) prop.label = "Name" prop.isConfig = True prop.isAdmin = True prop.isCreateOnly = True prop.range = [(0, 64)] prop.regex = ['[a-zA-Z0-9_.:-]+'] meta.props.add("name", prop) prop = PropMeta("str", "nameAlias", "nameAlias", 28417, PropCategory.REGULAR) prop.label = "Name alias" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 63)] prop.regex = ['[a-zA-Z0-9_.-]+'] meta.props.add("nameAlias", prop) prop = PropMeta("str", "ownerKey", "ownerKey", 15230, PropCategory.REGULAR) prop.label = "None" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 128)] prop.regex = ['[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]+'] meta.props.add("ownerKey", prop) prop = PropMeta("str", "ownerTag", "ownerTag", 15231, PropCategory.REGULAR) prop.label = "None" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 64)] prop.regex = ['[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]+'] meta.props.add("ownerTag", prop) prop = PropMeta("str", "pwdClassFlags", "pwdClassFlags", 33597, PropCategory.REGULAR) prop.label = "Password Class Flags" prop.isConfig = True prop.isAdmin = True prop.defaultValue = 7 prop._addConstant("digits", "digits", 4) prop._addConstant("lowercase", "lowercase", 1) prop._addConstant("specialchars", "special-characters", 8) prop._addConstant("uppercase", "uppercase", 2) meta.props.add("pwdClassFlags", prop) prop = PropMeta("str", "pwdMaxLength", "pwdMaxLength", 33595, PropCategory.REGULAR) prop.label = "Maximum Password Length" prop.isConfig = True prop.isAdmin = True prop.defaultValue = 64 prop.defaultValueStr = "64" meta.props.add("pwdMaxLength", prop) prop = PropMeta("str", "pwdMinLength", "pwdMinLength", 33594, PropCategory.REGULAR) prop.label = "Minimum Password Length" prop.isConfig = True prop.isAdmin = True prop.defaultValue = 8 prop.defaultValueStr = "8" meta.props.add("pwdMinLength", prop) prop = PropMeta("str", "pwdStrengthTestType", "pwdStrengthTestType", 33596, PropCategory.REGULAR) prop.label = "Password Strength Test Type" prop.isConfig = True prop.isAdmin = True prop.defaultValue = 1 prop.defaultValueStr = "default" prop._addConstant("custom", "custom-conditions", 2) prop._addConstant("default", "any-three-conditions", 1) meta.props.add("pwdStrengthTestType", prop) prop = PropMeta("str", "rn", "rn", 2, PropCategory.RN) prop.label = "None" prop.isRn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("rn", prop) prop = PropMeta("str", "status", "status", 3, PropCategory.STATUS) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("created", "created", 2) prop._addConstant("deleted", "deleted", 8) prop._addConstant("modified", "modified", 4) meta.props.add("status", prop) prop = PropMeta("str", "uid", "uid", 8, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True meta.props.add("uid", prop) # Deployment Meta meta.deploymentQuery = True meta.deploymentType = "Fabric" def __init__(self, parentMoOrDn, markDirty=True, **creationProps): namingVals = [] Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps)
class PartialRbacRule(Mo): """ Mo doc not defined in techpub!!! """ meta = ClassMeta("cobra.model.aaa.PartialRbacRule") meta.moClassName = "aaaPartialRbacRule" meta.rnFormat = "prule-[%(partialObjectDn)s]-dom-%(domain)s" meta.category = MoCategory.REGULAR meta.label = "Partial RBAC Rule" meta.writeAccessMask = 0x3 meta.readAccessMask = 0x3 meta.isDomainable = False meta.isReadOnly = False meta.isConfigurable = True meta.isDeletable = True meta.isContextRoot = False meta.childClasses.add("cobra.model.tag.Tag") meta.childClasses.add("cobra.model.fault.Counts") meta.childClasses.add("cobra.model.health.Inst") meta.childClasses.add("cobra.model.fault.Inst") meta.childClasses.add("cobra.model.aaa.RbacAnnotation") meta.childClasses.add("cobra.model.fault.Delegate") meta.childClasses.add("cobra.model.tag.Annotation") meta.childNamesAndRnPrefix.append( ("cobra.model.tag.Annotation", "annotationKey-")) meta.childNamesAndRnPrefix.append( ("cobra.model.aaa.RbacAnnotation", "rbacDom-")) meta.childNamesAndRnPrefix.append(("cobra.model.tag.Tag", "tagKey-")) meta.childNamesAndRnPrefix.append(("cobra.model.fault.Counts", "fltCnts")) meta.childNamesAndRnPrefix.append(("cobra.model.health.Inst", "health")) meta.childNamesAndRnPrefix.append(("cobra.model.fault.Inst", "fault-")) meta.childNamesAndRnPrefix.append(("cobra.model.fault.Delegate", "fd-")) meta.parentClasses.add("cobra.model.fv.Tenant") meta.superClasses.add("cobra.model.aaa.Definition") meta.superClasses.add("cobra.model.pol.Obj") meta.superClasses.add("cobra.model.pol.Def") meta.superClasses.add("cobra.model.naming.NamedObject") meta.rnPrefixes = [ ('prule-', True), ('-dom-', True), ] prop = PropMeta("str", "allowWrites", "allowWrites", 20158, PropCategory.REGULAR) prop.label = "Allow Writes from domain" prop.isConfig = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "no" prop._addConstant("no", "no", 0) prop._addConstant("yes", "yes", 1) meta.props.add("allowWrites", prop) prop = PropMeta("str", "annotation", "annotation", 38238, PropCategory.REGULAR) prop.label = "Annotation. Suggested format orchestrator:value" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 128)] prop.regex = ['[a-zA-Z0-9_.:-]+'] meta.props.add("annotation", prop) prop = PropMeta("str", "childAction", "childAction", 4, PropCategory.CHILD_ACTION) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("deleteAll", "deleteall", 16384) prop._addConstant("deleteNonPresent", "deletenonpresent", 8192) prop._addConstant("ignore", "ignore", 4096) meta.props.add("childAction", prop) prop = PropMeta("str", "descr", "descr", 5579, PropCategory.REGULAR) prop.label = "Description" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 128)] prop.regex = ['[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]+'] meta.props.add("descr", prop) prop = PropMeta("str", "dn", "dn", 1, PropCategory.DN) prop.label = "None" prop.isDn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("dn", prop) prop = PropMeta("str", "domain", "domain", 20157, PropCategory.REGULAR) prop.label = "Domain" prop.isConfig = True prop.isAdmin = True prop.isCreateOnly = True prop.isNaming = True prop.regex = ['[a-zA-Z][a-zA-Z0-9_.-]{0,31}'] meta.props.add("domain", prop) prop = PropMeta("str", "extMngdBy", "extMngdBy", 40377, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "undefined" prop._addConstant("msc", "msc", 1) prop._addConstant("undefined", "undefined", 0) meta.props.add("extMngdBy", prop) prop = PropMeta("str", "lcOwn", "lcOwn", 9, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "local" prop._addConstant("implicit", "implicit", 4) prop._addConstant("local", "local", 0) prop._addConstant("policy", "policy", 1) prop._addConstant("replica", "replica", 2) prop._addConstant("resolveOnBehalf", "resolvedonbehalf", 3) meta.props.add("lcOwn", prop) prop = PropMeta("str", "modTs", "modTs", 7, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "never" prop._addConstant("never", "never", 0) meta.props.add("modTs", prop) prop = PropMeta("str", "monPolDn", "monPolDn", 20248, PropCategory.REGULAR) prop.label = "Monitoring policy attached to this observable object" prop.isImplicit = True prop.isAdmin = True meta.props.add("monPolDn", prop) prop = PropMeta("str", "name", "name", 1219, PropCategory.REGULAR) prop.label = "Name" prop.isConfig = True prop.isAdmin = True prop.isCreateOnly = True prop.range = [(0, 64)] prop.regex = ['[a-zA-Z0-9_.:-]+'] meta.props.add("name", prop) prop = PropMeta("str", "nameAlias", "nameAlias", 28417, PropCategory.REGULAR) prop.label = "Name alias" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 63)] prop.regex = ['[a-zA-Z0-9_.-]+'] meta.props.add("nameAlias", prop) prop = PropMeta("str", "ownerKey", "ownerKey", 15230, PropCategory.REGULAR) prop.label = "None" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 128)] prop.regex = ['[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]+'] meta.props.add("ownerKey", prop) prop = PropMeta("str", "ownerTag", "ownerTag", 15231, PropCategory.REGULAR) prop.label = "None" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 64)] prop.regex = ['[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]+'] meta.props.add("ownerTag", prop) prop = PropMeta("str", "partialObjectDn", "partialObjectDn", 20156, PropCategory.REGULAR) prop.label = "Partial Object DN" prop.isConfig = True prop.isAdmin = True prop.isCreateOnly = True prop.isNaming = True meta.props.add("partialObjectDn", prop) prop = PropMeta("str", "rn", "rn", 2, PropCategory.RN) prop.label = "None" prop.isRn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("rn", prop) prop = PropMeta("str", "status", "status", 3, PropCategory.STATUS) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("created", "created", 2) prop._addConstant("deleted", "deleted", 8) prop._addConstant("modified", "modified", 4) meta.props.add("status", prop) prop = PropMeta("str", "uid", "uid", 8, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True meta.props.add("uid", prop) meta.namingProps.append(getattr(meta.props, "partialObjectDn")) getattr(meta.props, "partialObjectDn").needDelimiter = True meta.namingProps.append(getattr(meta.props, "domain")) # Deployment Meta meta.deploymentQuery = True meta.deploymentType = "Fabric" def __init__(self, parentMoOrDn, partialObjectDn, domain, markDirty=True, **creationProps): namingVals = [partialObjectDn, domain] Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps)
class TrnsmtdErrPktsHist1mo(Mo): """ A class that represents historical statistics for transmitted error packets in a 1 month sampling interval. This class updates every day. """ meta = StatsClassMeta("cobra.model.comp.TrnsmtdErrPktsHist1mo", "transmitted error packets") counter = CounterMeta("error", CounterCategory.COUNTER, "packets", "transmitted error packets") counter._propRefs[PropCategory.IMPLICIT_CUMULATIVE] = "errorCum" counter._propRefs[PropCategory.IMPLICIT_PERIODIC] = "errorPer" counter._propRefs[PropCategory.IMPLICIT_MIN] = "errorMin" counter._propRefs[PropCategory.IMPLICIT_MAX] = "errorMax" counter._propRefs[PropCategory.IMPLICIT_AVG] = "errorAvg" counter._propRefs[PropCategory.IMPLICIT_SUSPECT] = "errorSpct" counter._propRefs[PropCategory.IMPLICIT_THRESHOLDED] = "errorThr" counter._propRefs[PropCategory.IMPLICIT_TREND] = "errorTr" counter._propRefs[PropCategory.IMPLICIT_RATE] = "errorRate" meta._counters.append(counter) counter = CounterMeta("drop", CounterCategory.COUNTER, "packets", "transmitted dropped packets") counter._propRefs[PropCategory.IMPLICIT_CUMULATIVE] = "dropCum" counter._propRefs[PropCategory.IMPLICIT_PERIODIC] = "dropPer" counter._propRefs[PropCategory.IMPLICIT_MIN] = "dropMin" counter._propRefs[PropCategory.IMPLICIT_MAX] = "dropMax" counter._propRefs[PropCategory.IMPLICIT_AVG] = "dropAvg" counter._propRefs[PropCategory.IMPLICIT_SUSPECT] = "dropSpct" counter._propRefs[PropCategory.IMPLICIT_THRESHOLDED] = "dropThr" counter._propRefs[PropCategory.IMPLICIT_TREND] = "dropTr" counter._propRefs[PropCategory.IMPLICIT_RATE] = "dropRate" meta._counters.append(counter) meta.moClassName = "compTrnsmtdErrPktsHist1mo" meta.rnFormat = "HDcompTrnsmtdErrPkts1mo-%(index)s" meta.category = MoCategory.STATS_HISTORY meta.label = "historical transmitted error packets stats in 1 month" meta.writeAccessMask = 0x1 meta.readAccessMask = 0x1 meta.isDomainable = False meta.isReadOnly = True meta.isConfigurable = False meta.isDeletable = False meta.isContextRoot = True meta.parentClasses.add("cobra.model.comp.Hv") meta.parentClasses.add("cobra.model.comp.HpNic") meta.parentClasses.add("cobra.model.comp.VNic") meta.parentClasses.add("cobra.model.comp.Vm") meta.superClasses.add("cobra.model.stats.Item") meta.superClasses.add("cobra.model.stats.Hist") meta.superClasses.add("cobra.model.comp.TrnsmtdErrPktsHist") meta.rnPrefixes = [ ('HDcompTrnsmtdErrPkts1mo-', True), ] prop = PropMeta("str", "childAction", "childAction", 4, PropCategory.CHILD_ACTION) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("deleteAll", "deleteall", 16384) prop._addConstant("deleteNonPresent", "deletenonpresent", 8192) prop._addConstant("ignore", "ignore", 4096) meta.props.add("childAction", prop) prop = PropMeta("str", "cnt", "cnt", 16212, PropCategory.REGULAR) prop.label = "Number of Collections During this Interval" prop.isImplicit = True prop.isAdmin = True meta.props.add("cnt", prop) prop = PropMeta("str", "dn", "dn", 1, PropCategory.DN) prop.label = "None" prop.isDn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("dn", prop) prop = PropMeta("str", "dropAvg", "dropAvg", 7749, PropCategory.IMPLICIT_AVG) prop.label = "transmitted dropped packets average value" prop.isOper = True prop.isStats = True meta.props.add("dropAvg", prop) prop = PropMeta("str", "dropCum", "dropCum", 7745, PropCategory.IMPLICIT_CUMULATIVE) prop.label = "transmitted dropped packets cumulative" prop.isOper = True prop.isStats = True meta.props.add("dropCum", prop) prop = PropMeta("str", "dropMax", "dropMax", 7748, PropCategory.IMPLICIT_MAX) prop.label = "transmitted dropped packets maximum value" prop.isOper = True prop.isStats = True meta.props.add("dropMax", prop) prop = PropMeta("str", "dropMin", "dropMin", 7747, PropCategory.IMPLICIT_MIN) prop.label = "transmitted dropped packets minimum value" prop.isOper = True prop.isStats = True meta.props.add("dropMin", prop) prop = PropMeta("str", "dropPer", "dropPer", 7746, PropCategory.IMPLICIT_PERIODIC) prop.label = "transmitted dropped packets periodic" prop.isOper = True prop.isStats = True meta.props.add("dropPer", prop) prop = PropMeta("str", "dropRate", "dropRate", 7753, PropCategory.IMPLICIT_RATE) prop.label = "transmitted dropped packets rate" prop.isOper = True prop.isStats = True meta.props.add("dropRate", prop) prop = PropMeta("str", "dropSpct", "dropSpct", 7750, PropCategory.IMPLICIT_SUSPECT) prop.label = "transmitted dropped packets suspect count" prop.isOper = True prop.isStats = True meta.props.add("dropSpct", prop) prop = PropMeta("str", "dropThr", "dropThr", 7751, PropCategory.IMPLICIT_THRESHOLDED) prop.label = "transmitted dropped packets thresholded flags" prop.isOper = True prop.isStats = True prop.defaultValue = 0 prop.defaultValueStr = "unspecified" prop._addConstant("avgCrit", "avg-severity-critical", 2199023255552) prop._addConstant("avgHigh", "avg-crossed-high-threshold", 68719476736) prop._addConstant("avgLow", "avg-crossed-low-threshold", 137438953472) prop._addConstant("avgMajor", "avg-severity-major", 1099511627776) prop._addConstant("avgMinor", "avg-severity-minor", 549755813888) prop._addConstant("avgRecovering", "avg-recovering", 34359738368) prop._addConstant("avgWarn", "avg-severity-warning", 274877906944) prop._addConstant("cumulativeCrit", "cumulative-severity-critical", 8192) prop._addConstant("cumulativeHigh", "cumulative-crossed-high-threshold", 256) prop._addConstant("cumulativeLow", "cumulative-crossed-low-threshold", 512) prop._addConstant("cumulativeMajor", "cumulative-severity-major", 4096) prop._addConstant("cumulativeMinor", "cumulative-severity-minor", 2048) prop._addConstant("cumulativeRecovering", "cumulative-recovering", 128) prop._addConstant("cumulativeWarn", "cumulative-severity-warning", 1024) prop._addConstant("lastReadingCrit", "lastreading-severity-critical", 64) prop._addConstant("lastReadingHigh", "lastreading-crossed-high-threshold", 2) prop._addConstant("lastReadingLow", "lastreading-crossed-low-threshold", 4) prop._addConstant("lastReadingMajor", "lastreading-severity-major", 32) prop._addConstant("lastReadingMinor", "lastreading-severity-minor", 16) prop._addConstant("lastReadingRecovering", "lastreading-recovering", 1) prop._addConstant("lastReadingWarn", "lastreading-severity-warning", 8) prop._addConstant("maxCrit", "max-severity-critical", 17179869184) prop._addConstant("maxHigh", "max-crossed-high-threshold", 536870912) prop._addConstant("maxLow", "max-crossed-low-threshold", 1073741824) prop._addConstant("maxMajor", "max-severity-major", 8589934592) prop._addConstant("maxMinor", "max-severity-minor", 4294967296) prop._addConstant("maxRecovering", "max-recovering", 268435456) prop._addConstant("maxWarn", "max-severity-warning", 2147483648) prop._addConstant("minCrit", "min-severity-critical", 134217728) prop._addConstant("minHigh", "min-crossed-high-threshold", 4194304) prop._addConstant("minLow", "min-crossed-low-threshold", 8388608) prop._addConstant("minMajor", "min-severity-major", 67108864) prop._addConstant("minMinor", "min-severity-minor", 33554432) prop._addConstant("minRecovering", "min-recovering", 2097152) prop._addConstant("minWarn", "min-severity-warning", 16777216) prop._addConstant("periodicCrit", "periodic-severity-critical", 1048576) prop._addConstant("periodicHigh", "periodic-crossed-high-threshold", 32768) prop._addConstant("periodicLow", "periodic-crossed-low-threshold", 65536) prop._addConstant("periodicMajor", "periodic-severity-major", 524288) prop._addConstant("periodicMinor", "periodic-severity-minor", 262144) prop._addConstant("periodicRecovering", "periodic-recovering", 16384) prop._addConstant("periodicWarn", "periodic-severity-warning", 131072) prop._addConstant("rateCrit", "rate-severity-critical", 36028797018963968) prop._addConstant("rateHigh", "rate-crossed-high-threshold", 1125899906842624) prop._addConstant("rateLow", "rate-crossed-low-threshold", 2251799813685248) prop._addConstant("rateMajor", "rate-severity-major", 18014398509481984) prop._addConstant("rateMinor", "rate-severity-minor", 9007199254740992) prop._addConstant("rateRecovering", "rate-recovering", 562949953421312) prop._addConstant("rateWarn", "rate-severity-warning", 4503599627370496) prop._addConstant("trendCrit", "trend-severity-critical", 281474976710656) prop._addConstant("trendHigh", "trend-crossed-high-threshold", 8796093022208) prop._addConstant("trendLow", "trend-crossed-low-threshold", 17592186044416) prop._addConstant("trendMajor", "trend-severity-major", 140737488355328) prop._addConstant("trendMinor", "trend-severity-minor", 70368744177664) prop._addConstant("trendRecovering", "trend-recovering", 4398046511104) prop._addConstant("trendWarn", "trend-severity-warning", 35184372088832) prop._addConstant("unspecified", None, 0) meta.props.add("dropThr", prop) prop = PropMeta("str", "dropTr", "dropTr", 7752, PropCategory.IMPLICIT_TREND) prop.label = "transmitted dropped packets trend" prop.isOper = True prop.isStats = True meta.props.add("dropTr", prop) prop = PropMeta("str", "errorAvg", "errorAvg", 7770, PropCategory.IMPLICIT_AVG) prop.label = "transmitted error packets average value" prop.isOper = True prop.isStats = True meta.props.add("errorAvg", prop) prop = PropMeta("str", "errorCum", "errorCum", 7766, PropCategory.IMPLICIT_CUMULATIVE) prop.label = "transmitted error packets cumulative" prop.isOper = True prop.isStats = True meta.props.add("errorCum", prop) prop = PropMeta("str", "errorMax", "errorMax", 7769, PropCategory.IMPLICIT_MAX) prop.label = "transmitted error packets maximum value" prop.isOper = True prop.isStats = True meta.props.add("errorMax", prop) prop = PropMeta("str", "errorMin", "errorMin", 7768, PropCategory.IMPLICIT_MIN) prop.label = "transmitted error packets minimum value" prop.isOper = True prop.isStats = True meta.props.add("errorMin", prop) prop = PropMeta("str", "errorPer", "errorPer", 7767, PropCategory.IMPLICIT_PERIODIC) prop.label = "transmitted error packets periodic" prop.isOper = True prop.isStats = True meta.props.add("errorPer", prop) prop = PropMeta("str", "errorRate", "errorRate", 7774, PropCategory.IMPLICIT_RATE) prop.label = "transmitted error packets rate" prop.isOper = True prop.isStats = True meta.props.add("errorRate", prop) prop = PropMeta("str", "errorSpct", "errorSpct", 7771, PropCategory.IMPLICIT_SUSPECT) prop.label = "transmitted error packets suspect count" prop.isOper = True prop.isStats = True meta.props.add("errorSpct", prop) prop = PropMeta("str", "errorThr", "errorThr", 7772, PropCategory.IMPLICIT_THRESHOLDED) prop.label = "transmitted error packets thresholded flags" prop.isOper = True prop.isStats = True prop.defaultValue = 0 prop.defaultValueStr = "unspecified" prop._addConstant("avgCrit", "avg-severity-critical", 2199023255552) prop._addConstant("avgHigh", "avg-crossed-high-threshold", 68719476736) prop._addConstant("avgLow", "avg-crossed-low-threshold", 137438953472) prop._addConstant("avgMajor", "avg-severity-major", 1099511627776) prop._addConstant("avgMinor", "avg-severity-minor", 549755813888) prop._addConstant("avgRecovering", "avg-recovering", 34359738368) prop._addConstant("avgWarn", "avg-severity-warning", 274877906944) prop._addConstant("cumulativeCrit", "cumulative-severity-critical", 8192) prop._addConstant("cumulativeHigh", "cumulative-crossed-high-threshold", 256) prop._addConstant("cumulativeLow", "cumulative-crossed-low-threshold", 512) prop._addConstant("cumulativeMajor", "cumulative-severity-major", 4096) prop._addConstant("cumulativeMinor", "cumulative-severity-minor", 2048) prop._addConstant("cumulativeRecovering", "cumulative-recovering", 128) prop._addConstant("cumulativeWarn", "cumulative-severity-warning", 1024) prop._addConstant("lastReadingCrit", "lastreading-severity-critical", 64) prop._addConstant("lastReadingHigh", "lastreading-crossed-high-threshold", 2) prop._addConstant("lastReadingLow", "lastreading-crossed-low-threshold", 4) prop._addConstant("lastReadingMajor", "lastreading-severity-major", 32) prop._addConstant("lastReadingMinor", "lastreading-severity-minor", 16) prop._addConstant("lastReadingRecovering", "lastreading-recovering", 1) prop._addConstant("lastReadingWarn", "lastreading-severity-warning", 8) prop._addConstant("maxCrit", "max-severity-critical", 17179869184) prop._addConstant("maxHigh", "max-crossed-high-threshold", 536870912) prop._addConstant("maxLow", "max-crossed-low-threshold", 1073741824) prop._addConstant("maxMajor", "max-severity-major", 8589934592) prop._addConstant("maxMinor", "max-severity-minor", 4294967296) prop._addConstant("maxRecovering", "max-recovering", 268435456) prop._addConstant("maxWarn", "max-severity-warning", 2147483648) prop._addConstant("minCrit", "min-severity-critical", 134217728) prop._addConstant("minHigh", "min-crossed-high-threshold", 4194304) prop._addConstant("minLow", "min-crossed-low-threshold", 8388608) prop._addConstant("minMajor", "min-severity-major", 67108864) prop._addConstant("minMinor", "min-severity-minor", 33554432) prop._addConstant("minRecovering", "min-recovering", 2097152) prop._addConstant("minWarn", "min-severity-warning", 16777216) prop._addConstant("periodicCrit", "periodic-severity-critical", 1048576) prop._addConstant("periodicHigh", "periodic-crossed-high-threshold", 32768) prop._addConstant("periodicLow", "periodic-crossed-low-threshold", 65536) prop._addConstant("periodicMajor", "periodic-severity-major", 524288) prop._addConstant("periodicMinor", "periodic-severity-minor", 262144) prop._addConstant("periodicRecovering", "periodic-recovering", 16384) prop._addConstant("periodicWarn", "periodic-severity-warning", 131072) prop._addConstant("rateCrit", "rate-severity-critical", 36028797018963968) prop._addConstant("rateHigh", "rate-crossed-high-threshold", 1125899906842624) prop._addConstant("rateLow", "rate-crossed-low-threshold", 2251799813685248) prop._addConstant("rateMajor", "rate-severity-major", 18014398509481984) prop._addConstant("rateMinor", "rate-severity-minor", 9007199254740992) prop._addConstant("rateRecovering", "rate-recovering", 562949953421312) prop._addConstant("rateWarn", "rate-severity-warning", 4503599627370496) prop._addConstant("trendCrit", "trend-severity-critical", 281474976710656) prop._addConstant("trendHigh", "trend-crossed-high-threshold", 8796093022208) prop._addConstant("trendLow", "trend-crossed-low-threshold", 17592186044416) prop._addConstant("trendMajor", "trend-severity-major", 140737488355328) prop._addConstant("trendMinor", "trend-severity-minor", 70368744177664) prop._addConstant("trendRecovering", "trend-recovering", 4398046511104) prop._addConstant("trendWarn", "trend-severity-warning", 35184372088832) prop._addConstant("unspecified", None, 0) meta.props.add("errorThr", prop) prop = PropMeta("str", "errorTr", "errorTr", 7773, PropCategory.IMPLICIT_TREND) prop.label = "transmitted error packets trend" prop.isOper = True prop.isStats = True meta.props.add("errorTr", prop) prop = PropMeta("str", "index", "index", 5959, PropCategory.REGULAR) prop.label = "History Index" prop.isConfig = True prop.isAdmin = True prop.isCreateOnly = True prop.isNaming = True meta.props.add("index", prop) prop = PropMeta("str", "lastCollOffset", "lastCollOffset", 111, PropCategory.REGULAR) prop.label = "Collection Length" prop.isImplicit = True prop.isAdmin = True meta.props.add("lastCollOffset", prop) prop = PropMeta("str", "modTs", "modTs", 7, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "never" prop._addConstant("never", "never", 0) meta.props.add("modTs", prop) prop = PropMeta("str", "repIntvEnd", "repIntvEnd", 110, PropCategory.REGULAR) prop.label = "Reporting End Time" prop.isImplicit = True prop.isAdmin = True meta.props.add("repIntvEnd", prop) prop = PropMeta("str", "repIntvStart", "repIntvStart", 109, PropCategory.REGULAR) prop.label = "Reporting Start Time" prop.isImplicit = True prop.isAdmin = True meta.props.add("repIntvStart", prop) prop = PropMeta("str", "rn", "rn", 2, PropCategory.RN) prop.label = "None" prop.isRn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("rn", prop) prop = PropMeta("str", "status", "status", 3, PropCategory.STATUS) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("created", "created", 2) prop._addConstant("deleted", "deleted", 8) prop._addConstant("modified", "modified", 4) meta.props.add("status", prop) meta.namingProps.append(getattr(meta.props, "index")) def __init__(self, parentMoOrDn, index, markDirty=True, **creationProps): namingVals = [index] Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps)
class AVmmPltfmP(Mo): meta = ClassMeta("cobra.model.comp.AVmmPltfmP") meta.isAbstract = True meta.moClassName = "compAVmmPltfmP" meta.moClassName = "compAVmmPltfmP" meta.rnFormat = "" meta.category = MoCategory.REGULAR meta.label = "Abstraction of VMM Platform Policy" meta.writeAccessMask = 0x601 meta.readAccessMask = 0x601 meta.isDomainable = False meta.isReadOnly = False meta.isConfigurable = True meta.isDeletable = True meta.isContextRoot = False meta.childClasses.add("cobra.model.fault.Delegate") meta.childNamesAndRnPrefix.append(("cobra.model.fault.Delegate", "fd-")) meta.parentClasses.add("cobra.model.fv.RsDomAtt") meta.superClasses.add("cobra.model.naming.NamedObject") meta.superClasses.add("cobra.model.pol.Obj") meta.superClasses.add("cobra.model.pol.Def") meta.superClasses.add("cobra.model.comp.APltfmP") meta.concreteSubClasses.add("cobra.model.vmm.SecP") meta.rnPrefixes = [ ] prop = PropMeta("str", "childAction", "childAction", 4, PropCategory.CHILD_ACTION) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("deleteAll", "deleteall", 16384) prop._addConstant("deleteNonPresent", "deletenonpresent", 8192) prop._addConstant("ignore", "ignore", 4096) meta.props.add("childAction", prop) prop = PropMeta("str", "descr", "descr", 5579, PropCategory.REGULAR) prop.label = "Description" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 128)] prop.regex = ['[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]+'] meta.props.add("descr", prop) prop = PropMeta("str", "dn", "dn", 1, PropCategory.DN) prop.label = "None" prop.isDn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("dn", prop) prop = PropMeta("str", "name", "name", 4991, PropCategory.REGULAR) prop.label = "Name" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 64)] prop.regex = ['[a-zA-Z0-9_.:-]+'] meta.props.add("name", prop) prop = PropMeta("str", "nameAlias", "nameAlias", 28417, PropCategory.REGULAR) prop.label = "Name alias" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 63)] prop.regex = ['[a-zA-Z0-9_.-]+'] meta.props.add("nameAlias", prop) prop = PropMeta("str", "ownerKey", "ownerKey", 15230, PropCategory.REGULAR) prop.label = "None" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 128)] prop.regex = ['[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]+'] meta.props.add("ownerKey", prop) prop = PropMeta("str", "ownerTag", "ownerTag", 15231, PropCategory.REGULAR) prop.label = "None" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 64)] prop.regex = ['[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]+'] meta.props.add("ownerTag", prop) prop = PropMeta("str", "rn", "rn", 2, PropCategory.RN) prop.label = "None" prop.isRn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("rn", prop) prop = PropMeta("str", "status", "status", 3, PropCategory.STATUS) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("created", "created", 2) prop._addConstant("deleted", "deleted", 8) prop._addConstant("modified", "modified", 4) meta.props.add("status", prop) # Deployment Meta meta.deploymentQuery = True meta.deploymentType = "Ancestor" meta.deploymentQueryPaths.append(DeploymentPathMeta("ATgToGraphInst", "Graph Instances", "cobra.model.vns.GraphInst")) meta.deploymentQueryPaths.append(DeploymentPathMeta("AEPgToVirtualMachines", "Virtual Machines", "cobra.model.comp.Vm")) meta.deploymentQueryPaths.append(DeploymentPathMeta("EPgToNwIf", "Interface", "cobra.model.nw.If")) def __init__(self, parentMoOrDn, markDirty=True, **creationProps): namingVals = [] Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps)