Class: IControl::Networking::PacketFilterGlobals

Inherits:
Base
  • Object
show all
Defined in:
lib/icontrol/networking/packet_filter_globals.rb,
lib/icontrol/networking.rb

Overview

The PacketFilterGlobals interface enables you to work with the global lists of trusted source addresses and ingress VLANs used in packet filtering.

Instance Method Summary (collapse)

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class IControl::Base

Instance Method Details

- (Object) add_trusted_address

Adds this addresse to the list of trusted source addresse.

Raises:

  • (IControl::IControl::Common::AccessDenied)

    raised if the client credentials are not valid.

  • (IControl::IControl::Common::InvalidArgument)

    raised if one of the arguments is invalid.

  • (IControl::IControl::Common::OperationFailed)

    raised if an operation error occurs.



15
16
17
# File 'lib/icontrol/networking/packet_filter_globals.rb', line 15

def add_trusted_address
  super
end

- (Object) add_trusted_mac_address(opts)

Adds this MAC addresse to the list of trusted MAC addresse.

Options Hash (opts):

  • :mac_addresses (String)

    The MAC addresses.

Raises:

  • (IControl::IControl::Common::AccessDenied)

    raised if the client credentials are not valid.

  • (IControl::IControl::Common::InvalidArgument)

    raised if one of the arguments is invalid.

  • (IControl::IControl::Common::OperationFailed)

    raised if an operation error occurs.



27
28
29
30
# File 'lib/icontrol/networking/packet_filter_globals.rb', line 27

def add_trusted_mac_address(opts)
  check_params(opts,[:mac_addresses])
  super
end

- (Object) add_trusted_vlan(opts)

Adds this ingress VLANs to the list of trusted VLANs.

Options Hash (opts):

  • :vlans (String)

    The VLAN names.

Raises:

  • (IControl::IControl::Common::AccessDenied)

    raised if the client credentials are not valid.

  • (IControl::IControl::Common::InvalidArgument)

    raised if one of the arguments is invalid.

  • (IControl::IControl::Common::OperationFailed)

    raised if an operation error occurs.



40
41
42
43
# File 'lib/icontrol/networking/packet_filter_globals.rb', line 40

def add_trusted_vlan(opts)
  check_params(opts,[:vlans])
  super
end

- (Object) remove_trusted_address

Removes this addresse from the list of trusted source addresse.

Raises:

  • (IControl::IControl::Common::AccessDenied)

    raised if the client credentials are not valid.

  • (IControl::IControl::Common::InvalidArgument)

    raised if one of the arguments is invalid.

  • (IControl::IControl::Common::OperationFailed)

    raised if an operation error occurs.



92
93
94
# File 'lib/icontrol/networking/packet_filter_globals.rb', line 92

def remove_trusted_address
  super
end

- (Object) remove_trusted_mac_address(opts)

Removes this MAC addresse from the list of trusted MAC addresse.

Options Hash (opts):

  • :mac_addresses (String)

    The MAC addresses.

Raises:

  • (IControl::IControl::Common::AccessDenied)

    raised if the client credentials are not valid.

  • (IControl::IControl::Common::InvalidArgument)

    raised if one of the arguments is invalid.

  • (IControl::IControl::Common::OperationFailed)

    raised if an operation error occurs.



104
105
106
107
# File 'lib/icontrol/networking/packet_filter_globals.rb', line 104

def remove_trusted_mac_address(opts)
  check_params(opts,[:mac_addresses])
  super
end

- (Object) remove_trusted_vlan(opts)

Removes this ingress VLANs from the list of trusted VLANs.

Options Hash (opts):

  • :vlans (String)

    The VLAN names.

Raises:

  • (IControl::IControl::Common::AccessDenied)

    raised if the client credentials are not valid.

  • (IControl::IControl::Common::InvalidArgument)

    raised if one of the arguments is invalid.

  • (IControl::IControl::Common::OperationFailed)

    raised if an operation error occurs.



117
118
119
120
# File 'lib/icontrol/networking/packet_filter_globals.rb', line 117

def remove_trusted_vlan(opts)
  check_params(opts,[:vlans])
  super
end

- (String) trusted_address

Gets a list of all trusted source addresse used in packet filtering on this device.

Raises:

  • (IControl::IControl::Common::AccessDenied)

    raised if the client credentials are not valid.

  • (IControl::IControl::Common::InvalidArgument)

    raised if one of the arguments is invalid.

  • (IControl::IControl::Common::OperationFailed)

    raised if an operation error occurs.



52
53
54
# File 'lib/icontrol/networking/packet_filter_globals.rb', line 52

def trusted_address
  super
end

- (String) trusted_mac_address

Gets a list of all trusted MAC addresse used in packet filtering on this device.

Raises:

  • (IControl::IControl::Common::AccessDenied)

    raised if the client credentials are not valid.

  • (IControl::IControl::Common::InvalidArgument)

    raised if one of the arguments is invalid.

  • (IControl::IControl::Common::OperationFailed)

    raised if an operation error occurs.



63
64
65
# File 'lib/icontrol/networking/packet_filter_globals.rb', line 63

def trusted_mac_address
  super
end

- (String) trusted_vlan

Gets a list of all trusted ingress VLANs used in packet filtering on this device.

Raises:

  • (IControl::IControl::Common::AccessDenied)

    raised if the client credentials are not valid.

  • (IControl::IControl::Common::InvalidArgument)

    raised if one of the arguments is invalid.

  • (IControl::IControl::Common::OperationFailed)

    raised if an operation error occurs.



74
75
76
# File 'lib/icontrol/networking/packet_filter_globals.rb', line 74

def trusted_vlan
  super
end

- (String) version

Gets the version information for this interface.



82
83
84
# File 'lib/icontrol/networking/packet_filter_globals.rb', line 82

def version
  super
end