Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

CVI mode error while adding VLAN interfaces #75

Open
hexaholic opened this issue Feb 6, 2020 · 0 comments
Open

CVI mode error while adding VLAN interfaces #75

hexaholic opened this issue Feb 6, 2020 · 0 comments

Comments

@hexaholic
Copy link

Hi David,

I am trying to add VLAN interfaces to an existing layer3 physical interface of a cluster.

cluster.physical_interface.add_layer3_vlan_cluster_interface(
    interface_id=9,
    vlan_id=123,
    cluster_virtual='10.0.0.1',
    network_value='10.0.0.0/24',
    # cvi_mode='packetdispatch'
)

Unfortunately this throws an exception.

smc.api.exceptions.UpdateElementFailed: Impossible to update the specified interface for the target Dummy-Cluster. Element appears invalid: You must define a CVI mode for NIC 9 Physical Interface.

There is no difference between explicitly setting cvi_mode or leaving it out, the exception is always thrown. If I understand the source code correctly, it seems like the value is set to none later:

'macaddress': macaddress, 'cvi_mode': cvi_mode if macaddress else 'none',

Changing that expression to 'cvi_mode': cvi_mode if macaddress else 'packetdispatch' does the trick and the VLANs are added.

Am I using it wrong or is this a bug?


Btw: is this still the right place to raise issues, or should I move to Forcepoint/fp-NGFW-SMC-python?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant