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

#add_trusted_addressObject

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

#add_trusted_mac_address(opts) ⇒ Object

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

Parameters:

  • opts (Hash)

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)
  opts = check_params(opts,[:mac_addresses])
  super(opts)
end

#add_trusted_vlan(opts) ⇒ Object

Adds this ingress VLANs to the list of trusted VLANs.

Parameters:

  • opts (Hash)

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)
  opts = check_params(opts,[:vlans])
  super(opts)
end

#remove_trusted_addressObject

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

#remove_trusted_mac_address(opts) ⇒ Object

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

Parameters:

  • opts (Hash)

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)
  opts = check_params(opts,[:mac_addresses])
  super(opts)
end

#remove_trusted_vlan(opts) ⇒ Object

Removes this ingress VLANs from the list of trusted VLANs.

Parameters:

  • opts (Hash)

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)
  opts = check_params(opts,[:vlans])
  super(opts)
end

#trusted_addressString

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

Returns:

  • (String)

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

#trusted_mac_addressString

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

Returns:

  • (String)

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

#trusted_vlanString

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

Returns:

  • (String)

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

#versionString

Gets the version information for this interface.

Returns:

  • (String)


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

def version
  super
end