Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FBS classifiers resource module #490

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def __init__(self, **kwargs):
'mgmt_servers',
'ospf_area',
'ssh',
'fbs_classifiers'
]

argument_spec = {
Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
#
# -*- coding: utf-8 -*-
# Copyright 2024 Dell Inc. or its subsidiaries. All Rights Reserved.
# GNU General Public License v3.0+
# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)

#############################################
# WARNING #
#############################################
#
# This file is auto generated by the resource
# module builder playbook.
#
# Do not edit this file manually.
#
# Changes to this file will be over written
# by the resource module builder.
#
# Changes should be made in the model used to
# generate this file or in the resource module
# builder template.
#
#############################################

"""
The arg spec for the sonic_fbs_classifiers module
"""
from __future__ import absolute_import, division, print_function
__metaclass__ = type


class Fbs_classifiersArgs(object): # pylint: disable=R0903
"""The arg spec for the sonic_fbs_classifiers module
"""

def __init__(self, **kwargs):
pass

argument_spec = {
'config': {
'elements': 'dict',
'mutually_exclusive': [['match_acl', 'match_hdr_fields']],
'options': {
'class_name': {'required': True, 'type': 'str'},
'class_description': {'type': 'str'},
'match_acl': {
'options': {
'acl_name': {'required': True, 'type': 'str'},
'acl_type': {'choices': ['ip', 'ipv6', 'mac'], 'required': True, 'type': 'str'}
},
'type': 'dict'
},
'match_hdr_fields': {
'mutually_exclusive': [['ipv4', 'ipv6']],
'options': {
'ip': {
'options': {
'dscp': {'type': 'int'},
'protocol': {
'choices': ['auth', 'gre', 'icmp', 'icmpv6', 'igmp', 'l2tp', 'pim', 'rsvp', 'tcp', 'udp'],
'type': 'str'
}
},
'type': 'dict'
},
'ipv4': {
'options': {
'destination_address': {'type': 'str'},
'source_address': {'type': 'str'}
},
'type': 'dict'
},
'ipv6': {
'options': {
'destination_address': {'type': 'str'},
'source_address': {'type': 'str'}
},
'type': 'dict'
},
'l2': {
'options': {
'dei': {'type': 'int'},
'destination_mac': {'type': 'str'},
'destination_mac_mask': {'type': 'str'},
'ethertype': {
'choices': ['arp', 'ipv4', 'ipv6', 'lldp', 'mpls', 'roce', 'vlan'],
'type': 'str'
},
'pcp': {'type': 'int'},
'source_mac': {'type': 'str'},
'source_mac_mask': {'type': 'str'},
'vlanid': {'type': 'int'}
},
'type': 'dict'
},
'transport': {
'options': {
'destination_port': {'type': 'str'},
'icmp_code': {'type': 'int'},
'icmp_type': {'type': 'int'},
'source_port': {'type': 'str'},
'tcp_flags': {
'choices': ['ack', 'fin', 'psh', 'rst', 'syn', 'urg'],
'elements': 'str',
'type': 'list'
}
},
'type': 'dict'
}
},
'type': 'dict'
},
'match_type': {'choices': ['acl', 'fields'], 'type': 'str'}
},
'type': 'list'
},
'state': {
'choices': ['merged', 'deleted', 'replaced', 'overridden'],
'default': 'merged',
'type': 'str'
}
} # pylint: disable=C0301
Empty file.
Loading
Loading