Dockerfile updated to pull tagged version of schema to get the schema.json file.
This will make subsequent versioning much easier.
Once this is merged we can tag the client as 3.2.7 and then move forward to 4.x as we did with the schema.
Signed-off-by: Mike Hansen <mike.hansen@netexperience.com>
Add version to ols-ucentral-client
Augment the build to pull the schema version file from the ols-ucentral-schema repo (if present) based on commit id of
schema used as baseline for this client version.
Use both it and the version to provide the version information in the connect message.
Signed-off-by: Mike Hansen <mike.hansen@netexperience.com>
With the DHCP-snooping full support for the BRCM platforms
it's needed for the ports to be marked either trusted/untrusted
to make sure proper DHCP request/reply forwarding occurs.
With this commit the following behavior is enforced:
* Every port is untrusted by default upon device startup;
* Uplink interface (port) is determined through the means of
parsing ARP+FBD table;
* DHCP trust is enabled only for the uplink port;
* All vlan members can now send DHCP discover(s), which
will be forwarded (flooded) to trusted ports (in our
case to a single trusted uplink port) and get
their replies back.
Signed-off-by: Oleksandr Mazur <oleksandr.mazur@plvision.eu>
Deviceupdate condition never fails whenever password is changed,
thus makes the device spam with passwordchange events.
This, as a results, overflows internal buffers, which
overflows internal disk storage.
Signed-off-by: Oleksandr Mazur <oleksandr.mazur@plvision.eu>
Do not apply or modify any L3 cfg for Vlan 1 (ip, dhcp, igmp, etc.)
Signed-off-by: Serhiy Boiko <serhiy.boiko@plvision.eu>
Change-Id: I0e19bad017cacc14cb30af946101d7ad4d9bc8d0
'log' field is expected to be (and is defined in the schema as) an object,
so there is no need to handle it as an array.
Signed-off-by: Serhiy Boiko <serhiy.boiko@plvision.eu>
Change-Id: I05dd8de1fad086fd6ea16a4cb4792ad7f6e826fd
Use docker env variables to pass a new gw addr, since the old
gw (that is reported by the redirector) is not available.
Signed-off-by: Serhiy Boiko <serhiy.boiko@plvision.eu>
Change-Id: Ibb3a3b95d556996617d7f4ce1d6a58303df76ad7
Running diagnostics takes a long time (up to 10mins). Running
it in the same context as the callback broker means that all
messages are blocked until diagnostics is finished.
Creating a new thread resolves this issue.
Signed-off-by: Serhiy Boiko <serhiy.boiko@plvision.eu>
Change-Id: Iadb628007903a7d643b6d2e705da84fd04e73dbe
Enable properly DHCP snooping for Vlan1 by default;
Make sure NTP is configured to use Vlan1 as wel;
Signed-off-by: Oleksandr Mazur <oleksandr.mazur@plvision.eu>
Change-Id: Ided132b12a5d472954458632cd61b3e43e072fa0
Since port isolation schema moved from ethernet to switch update
the code acordingly.
Signed-off-by: Serhiy Boiko <serhiy.boiko@plvision.eu>
Change-Id: I30335af3d17ad6ecc910c5c8ed2ca69eaaae0913
Add netlink calls to get vlan ip addrs.
Add gnma api to retreive list of addrs.
Add "addresses" field to vlan interfaces.
Signed-off-by: Serhiy Boiko <serhiy.boiko@plvision.eu>
Change-Id: I4a43485d45c75993ef128c952acfd69f04cd975e
The schema requires the config to have the following format:
{
"ipv4": {
"subnet": [
{ "prefix": "255.255.225.255/32" }
]
}
}
But the code expected this:
{
"ipv4": {
"subnet": "255.255.225.255/32"
}
}
Since parsing ipv4 for vlans and ports is the same the code
is moved to a function.
*_interface_parse function were refactored to remove unnecessary
indentations.
Limitations:
Only a single ip address can be configured on an interface.
IP address will be configured only for the first port in the list.
Signed-off-by: Serhiy Boiko <serhiy.boiko@plvision.eu>
Change-Id: Ie3ed777a963129269b10833c970dc3e8a24b6b38
Fix issue where STP config was rejected on device because
some of the GNMI entries could not be deleted.
Signed-off-by: Serhiy Boiko <serhiy.boiko@plvision.eu>
Change-Id: Ida30be22c609c682b526358c98225bff0567290c
Set querrier attributes only for `ip igmp ...`.
Set snooping attributes only for `ip igmp snooping ...`
fixes: a15c56f
Signed-off-by: Serhiy Boiko <serhiy.boiko@plvision.eu>
Change-Id: I56369d323fdd8b2b63605392cb8b23fa0442bb8a
Store IGMP info inside plat struct (GNMI/GNMA handlers);
Add vlan interfaces to the list of all interfaces (proto handlers).
Vlan interfaces have a multicast field as per state schema.
Signed-off-by: Serhiy Boiko <serhiy.boiko@plvision.eu>
Change-Id: Id9778a017e0ba54f8e1154e580304f95e3de41c8
Implement handlers for retrieving platstate of DAS configuration,
as well as DAC list (same as for RADIUS clients).
Signed-off-by: Oleksandr Mazur <oleksandr.mazur@plvision.eu>
Change-Id: Ifa149aa1708c114cc4b5b59772d524f4cd5b70b2
Newest BRCM images changed from number->string values of
some PoE-related info.
Fix parsing to report valid data back to cloud.
Signed-off-by: Oleksandr Mazur <oleksandr.mazur@plvision.eu>
Change-Id: I46afee603f16439fa23adda698be748bfe008b04
GW expects for reply to be sent immediatly (pending state).
This gives GW understanding that command's been processed,
but is still executing.
The final result would be sent afterwards, upon diag completion.
However, the initial pending should be sent as fast as possible,
upon parsing the command itself.
This change fixes the expectations of GW. Without this change
command is marked as timedout, then pending and the completed
OK.
Signed-off-by: Oleksandr Mazur <oleksandr.mazur@plvision.eu>
Change-Id: I36925783fc2bc1cd7dfebb957d7ba30d2c7650ea