コード例 #1
0
    def add_known_arguments(parser):
        parser.add_argument(
            'id',
            metavar='SECMONDETAILS',
            help=FH(_("ID of SecmonDetail to update")))

        parser.add_argument(
            '--scope-name',
            metavar='SCOPE_NAME',
            help=FH(_("Scope-Name of the SecmonDetails")))

        parser.add_argument(
            '--mac-address',
            metavar='MAC_ADDRESS',
            help=FH(_("Mac-Address of the SecmonDetails")))

        parser.add_argument(
            '--ip-address',
            help=FH(_("IP-Address of the SecmonDetails")))

        parser.add_argument(
            '--port',
            type=check_integer_range,
            help=FH(_("Port for SecmonDetails")))

        return parser
コード例 #2
0
    def add_known_arguments(parser):
        parser.add_argument(
            '--collector-id',
            metavar='COLLECTOR_ID',
            help=FH(_("Collector_ID of the RawForwardAssociation")))

        parser.add_argument(
            '--originator-vm-id',
            metavar='ORIGINATOR_VM_ID',
            help=FH(_("Originator_vm_id of the RawForwardAssociation")))

        parser.add_argument(
            '--policy-id',
            metavar='POICY_ID',
            help=FH(_("Policy_id of the RawForwardAssociation")))

        parser.add_argument(
            '--scope-id',
            metavar='SCOPE_ID',
            help=FH(_("Scope_id of the RawForwardAssociation")))

        parser.add_argument(
            '--direction',
            choices=DIRECTIONCHOICES,
            help=FH(_("RawForwardAssociation Direction")))

        return parser
コード例 #3
0
    def add_known_arguments(parser):
        parser.add_argument(
            'id',
            metavar='SCOPE',
            help=FH(_("ID of Scope to update")))

        parser.add_argument(
            'name',
            metavar='NAME',
            help=FH(_("Name of the Scope")))

        parser.add_argument(
            '--sflowstatus',
            choices=PLUGINSTATUS,
            help=FH(_("Scope SFlowStatus")))

        parser.add_argument(
            '--netflowstatus',
            choices=PLUGINSTATUS,
            help=FH(_("Scope NetFlowStatus")))

        parser.add_argument(
            '--rawforwardstatus',
            choices=PLUGINSTATUS,
            help=FH(_("Scope RawForwardstatus")))

        return parser
コード例 #4
0
    def add_known_arguments(parser):
        parser.add_argument('name',
                            metavar='NAME',
                            help=FH(_("Name of the Policy")))

        parser.add_argument('--ruleobject-id',
                            metavar='RULEOBJECT_ID',
                            help=FH(_("RuleObject-ID of the Policy")))

        return parser
コード例 #5
0
    def add_known_arguments(parser):
        parser.add_argument('--scope-id',
                            help=FH(_("Scope_ID for Netflowmonitor")))

        parser.add_argument('--match-fields',
                            help=FH(_("Match_fields of the Netflowmonitor")))

        parser.add_argument('--collect-fields',
                            help=FH(_("Collect_fields for Netflowmonitor")))

        return parser
コード例 #6
0
    def add_known_arguments(parser):
        parser.add_argument(
            '-D',
            '--show-details',
            help=FH(_("Show detailed information")),
            action='store_true',
            default=False,
        )

        parser.add_argument(
            '--field',
            dest='fields',
            metavar='FIELD',
            help=FH(
                _("Specify the field(s) to be displayed in the output. You\n"
                  "can repeat this option.")),
            action='append',
            default=[])

        parser.add_argument(
            '--sort-key',
            metavar='FIELD',
            action='append',
            help=FH(
                _("Sorts the list by the specified fields in the specified\n"
                  "directions. You can repeat this option, but you must\n"
                  "specify an equal number of sort_direction and sort_key\n"
                  "values. Extra sort_direction options are ignored.\n"
                  "Missing sort_direction options use the default asc\n"
                  "value.")),
            default=[])

        parser.add_argument(
            '--sort-direction',
            metavar='{asc,desc}',
            help=FH(
                _("Sorts the list in the specified direction. You can\n"
                  "repeat this option.\n\n")),
            action='append',
            default=[],
            choices=['asc', 'desc'])

        formatter_group = parser.add_argument_group(
            title='output formatters', description='output formatter options')
        formatter_group.add_argument(
            '--format',
            dest='formatter',
            default='table',
            choices=['csv', 'html', 'table'],
            help=FH(_("the output format, Default: table\n\n")))

        return parser
コード例 #7
0
    def add_known_arguments(parser):
        parser.add_argument('id',
                            metavar='NETFLOWMONITOR',
                            help=FH(_("ID of Netflowmonitor to update")))

        parser.add_argument('--scope-id',
                            help=FH(_("Scope_ID for Netflowmonitor")))

        parser.add_argument('--match-fields',
                            help=FH(_("Match_fields of the Netflowmonitor")))

        parser.add_argument('--collect-fields',
                            help=FH(_("Collect_fields for Netflowmonitor")))

        return parser
コード例 #8
0
    def add_known_arguments(parser):
        parser.add_argument('id',
                            metavar='COLLECTOR',
                            help=FH(
                                _("ID or Name of Collector to search\n\n")))

        return parser
コード例 #9
0
    def add_known_arguments(parser):
        parser.add_argument('id',
                            metavar='NETFLOWASSOCIATION',
                            help=FH(
                                _("Name of Netflowassociation to search\n\n")))

        return parser
コード例 #10
0
    def add_known_arguments(parser):
        parser.add_argument(
            'id',
            metavar='RAWFORWARDASSOCIATION',
            help=FH(_("ID of RawForwardAssociation to delete")))

        return parser
コード例 #11
0
    def add_known_arguments(parser):
        parser.add_argument(
            'id',
            metavar='SECMONDETAILS',
            help=FH(_("ID of SecmonDetail to search\n\n")))

        return parser
コード例 #12
0
    def add_known_arguments(parser):
        parser.add_argument(
            'id',
            metavar='SFLOWASSOCIATION',
            help=FH(_("ID of SFlowAssociation to delete")))

        return parser
コード例 #13
0
    def add_known_arguments(parser):
        parser.add_argument(
            'id',
            metavar='SCOPE',
            help=FH(_("ID of Scope to delete")))

        return parser
コード例 #14
0
    def add_known_arguments(parser):
        parser.add_argument(
            'id',
            metavar='NETFLOWCONFIG',
            help=FH(_("ID of Netflowconfig to search\n\n")))

        return parser
コード例 #15
0
    def add_known_arguments(parser):
        parser.add_argument('id',
                            metavar='CLASSIFICATIONOBJECT',
                            help=FH(
                                _("ID of Classificatioobject to search\n\n")))

        return parser
コード例 #16
0
    def add_known_arguments(parser):
        parser.add_argument('name',
                            metavar='NAME',
                            help=FH(_("Name of the Collectorset")))

        parser.add_argument('--collector-ids',
                            help=FH(_("Collector_IDs of the Collectorset")))

        parser.add_argument('--col-type',
                            choices=PLUGIN_NAME,
                            help=FH(_("Collector Type")))

        parser.add_argument(
            '--lb-algo',
            #            choices=LB_ALGO_NAME,
            help=FH(_("Lb_algo of the collectorset")))

        return parser
コード例 #17
0
    def add_known_arguments(parser):

        parser.add_argument('--originator-vm-id',
                            help=FH(
                                _("Originator Id of the Netflowassociation")))

        parser.add_argument('--collector-id',
                            help=FH(_("Collector Id for Netflowassociation")))

        parser.add_argument('--direction',
                            choices=DIRECTIONCHOICES,
                            help=FH(_("Direction")))

        parser.add_argument('--policy-id',
                            help=FH(_("Policy Id of the Netflowassociation")))

        parser.add_argument('--scope-id',
                            help=FH(_("Scope Id for Netflowassociation")))

        return parser
コード例 #18
0
    def add_known_arguments(parser):

        parser.add_argument('--scope-id',
                            help=FH(_("Scope ID of the Sflowconfig")))

        parser.add_argument('--agent-ip',
                            help=FH(_("Agent IP of the Sflowconfig")))

        parser.add_argument('--agent-subid',
                            type=check_integer_range,
                            help=FH(_("Agent subID of the Sflowconfig")))

        parser.add_argument('--sampling-rate',
                            type=check_integer_range,
                            help=FH(_(" Sampling rate for Sflowconfig")))

        parser.add_argument('--truncate-to-size',
                            type=check_integer_range,
                            help=FH(_("Truncate size for Sflowconfig")))

        return parser
コード例 #19
0
    def add_known_arguments(parser):
        parser.add_argument('name',
                            metavar='NAME',
                            help=FH(_("Name of the Collector")))

        parser.add_argument('--ip-address',
                            help=FH(_("IP-Address of the Collector")))

        parser.add_argument('--udp-port',
                            type=check_integer_range,
                            help=FH(_("Port for Collector")))

        parser.add_argument('--col-type',
                            choices=PLUGIN_NAME,
                            help=FH(_("Collector Type")))

        parser.add_argument('--encapsulation-protocol',
                            choices=ENCAPSULATION_PROTOCOL,
                            help=FH(_("Encapsulation Protocol")))

        return parser
コード例 #20
0
    def add_known_arguments(parser):
        parser.add_argument('name',
                            metavar='NAME',
                            help=FH(_("Name of the RuleObject")))

        parser.add_argument(
            '--classificationobject-id',
            metavar='CLASSIFICATIONOBJECT_ID',
            help=FH(_("ClassificationObject-ID of the RuleObject")))

        parser.add_argument('--priority',
                            type=check_integer_range,
                            help=FH(_("Priority for RuleObject")))

        parser.add_argument('--truncate-to-size',
                            type=check_integer_range,
                            help=FH(_("Truncate-To-Size for RuleObject")))

        parser.add_argument('--action', help=FH(_("Action for RuleObject")))

        return parser
コード例 #21
0
    def add_known_arguments(parser):

        parser.add_argument(
            '--scope-id',
            help=FH(_("Scope ID of the Netflowconfig")))

        parser.add_argument(
            '--active-timeout',
            type=check_integer_range,
            help=FH(_("Active timeout of the netflowconfig")))

        parser.add_argument(
            '--inactive-timeout',
            type=check_integer_range,
            help=FH(_(" inactive timeout for Netflowconfig")))

        parser.add_argument(
            '--refresh-rate',
            type=check_integer_range,
            help=FH(_("refresh rate for Netflowconfig")))

        parser.add_argument(
            '--timeout-rate',
            type=check_integer_range,
            help=FH(_("timeout rate for Netflowconfig")))

        parser.add_argument(
            '--maxflows',
            type=check_integer_range,
            help=FH(_("maxflows for Netflowconfig")))

        return parser
コード例 #22
0
    def add_known_arguments(parser):
        parser.add_argument('id',
                            metavar='NETFLOWASSOCIATION',
                            help=FH(_("ID of Netflowassociation to update")))

        parser.add_argument('--originator-vm-id',
                            help=FH(
                                _("Originator Id of the Netflowassociation")))

        parser.add_argument('--collector-id',
                            help=FH(_("Collector_ID for Netflowassociation")))

        parser.add_argument('--direction',
                            choices=DIRECTIONCHOICES,
                            help=FH(_("Direction")))

        parser.add_argument('--policy-id',
                            help=FH(_("Policy Id of the Netflowassociation")))

        parser.add_argument('--scope-id',
                            help=FH(_("Scope Id for Netflowassociation")))

        return parser
コード例 #23
0
    def add_known_arguments(parser):
        parser.add_argument('id',
                            metavar='COLLECTORSET',
                            help=FH(_("ID of Collectorset to delete")))

        return parser
コード例 #24
0
    def add_known_arguments(parser):
        parser.add_argument('id',
                            metavar='SFLOWCONFIG',
                            help=FH(_("ID of Sflowconfig to delete")))

        return parser
コード例 #25
0
    def add_known_arguments(parser):
        parser.add_argument('id',
                            metavar='RULEOBJECT',
                            help=FH(_("ID of RuleObject to search\n\n")))

        return parser
コード例 #26
0
    def add_known_arguments(parser):
        parser.add_argument('id',
                            metavar='NETFLOWMONITOR',
                            help=FH(_("ID of Netflowmonitor to delete")))

        return parser
コード例 #27
0
    def add_known_arguments(parser):
        parser.add_argument('id',
                            metavar='NETFLOWMONITOR',
                            help=FH(_("Name of Netflowmonitor to search\n\n")))

        return parser
コード例 #28
0
    def add_known_arguments(parser):
        parser.add_argument('id',
                            metavar='POLICY',
                            help=FH(_("ID of Policy to search\n\n")))

        return parser
コード例 #29
0
    def add_known_arguments(parser):
        parser.add_argument('name',
                            metavar='NAME',
                            help=FH(_("Name of the Classificationobject")))

        parser.add_argument('--src-ip',
                            help=FH(
                                _("Source IP of the Classificationobject")))

        parser.add_argument('--src-mac',
                            help=FH(
                                _("Source IP of the Classificationobject")))

        parser.add_argument(
            '--src-ip-subnet',
            type=check_integer_range,
            help=FH(_("Source IP subnet for Classificationobject")))

        parser.add_argument(
            '--minimum-src-port',
            type=check_integer_range,
            help=FH(_("Minimum source port for Classificationobject")))

        parser.add_argument(
            '--maximum-src-port',
            type=check_integer_range,
            help=FH(_("Maximum source port for Classificationobject")))

        parser.add_argument(
            '--dst-ip',
            help=FH(_("Destination IP of the Classificationobject")))

        parser.add_argument(
            '--dst-mac',
            help=FH(_("Destination MAC of the Classificationobject")))

        parser.add_argument(
            '--dst-ip-subnet',
            type=check_integer_range,
            help=FH(_("Destination IP subnet for Classificationobject")))

        parser.add_argument(
            '--minimum-dst-port',
            type=check_integer_range,
            help=FH(_("Minimum destination port for Classificationobject")))

        parser.add_argument(
            '--maximum-dst-port',
            type=check_integer_range,
            help=FH(_("Maximum destination port for Classificationobject")))

        parser.add_argument('--protocol',
                            help=FH(_("Protocol for Classificationobject")))

        return parser